Performance questions
Can drizzle generate an initial schema from an existing db?
Prepared Stements
Running `drizzle-kit introspect:pg` returns "client password must be a string"
drizzle-kit introspect:pg
against my database but I'm getting the error:
Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string
Error: SASL: SCRAM-SERVER-FIRST-MESSAGE: client password must be a string
noob help : transaction not acid
Explicit inferred types
Many-to-Many where in far table
findMany()
Pokemon(s) by a type name
```
pokemons pokemonsToType types
======== =============== =======...Cannot call onConflictDoNothing() or on onConflctDoUpdate() on select
Top-level await is not available in the configured target environment ("chrome87", "edge88", "es2020
can you Infer relations?
Prisma.YourModelGetPayload<{}>
to generate a type with relations, is this possible with infermodel?
i tired the most obvious way and that didnt work
InferModel<typeof userRelations>;
InferModel<typeof userRelations>;
subRows.map is not a function
Postgres's Serial column type doesn't automatically have a default
serial
types, and setting them as primary keys, there is an issue currently that does not mark them as has default
. What I mean is, from the docs The data types smallserial, serial and bigserial are not true types, but merely a notational convenience for creating unique identifier columns (similar to the AUTO_INCREMENT property supported by some other databases)
, the Serial
types already have a default implementation, but if you use them as is in Drizzle, they aren't regarded as having a default
```
type NewTest = InferModel<typeof test, 'insert'>;
^? type NewTest = {...How to insert into a table without providing values
Doent infer type in Callback syntax for query
Bug When Trying To Increment A Field
Maximum call stack exceeded with relation to self
importing into schema.ts file
packages/schema/user.ts
and in my main API application apps/api/schema.ts
I import the user schema. I believe I have everything setup correctly in terms of package.json setup.
My problem is that when using running migrations only tables explicitly defined in schema.ts
seem to work. ...What versions of MySQL are supported? I have JSON_ARRAYAGG issues with 5.7 and AWS Aurora Serverless