Utilizing Many-to-Many relationships
transaction not working for better-sqlite3
is there a reason why my row isn't being delete with CURRENT_TIMESTAMP
How would one go about caching in next 13 app router with db data
drizzle-kit generate requires sudo to create directory and SyntaxError on index.cjs, Unexpected "?"
Type error inserting 'new Date()' into 'time' type schema.
drizzle asks for <table> `id` when doing insert
Data factories
Prepared Statement doesn't exist
"message": "db error: ERROR: prepared statement \"s114\" does not exist\n\nCaused by:\n ERROR: prepared statement \"s114\" does not exist"
"message": "db error: ERROR: prepared statement \"s114\" does not exist\n\nCaused by:\n ERROR: prepared statement \"s114\" does not exist"
Help creating many to many (user has many followers, user has many followees)
Inconsistent transactions with Drizzle/Planetscale
Promise.all
inside a transaction using Planetscale's serverless driver. I've created a minimal repro here: https://github.com/tomqchristensen/drizzle-ps-tx. The gist of it is that trying to update multiple records in parallel using something like this:
```typescript
const updateParallelTx = async (n: number) =>
db.transaction(async (tx) => {...ERROR: prepared statement "s9656" does not exist
PostgresError: unrecognized configuration parameter "schema" when creating client for postgres-js
Does throwing a regular javascript error inside a transaction, roll back automatically?
Drizzle join in a subquery results in ambiguous columns
id ambiguous
error, since the orderedQuestions.survey_question.id
reference in the field selection of the second query generates the sql as 'id'
rather than 'survey_question'.'id'
as it should.
```ts
const orderedQuestions = tx
.select()...Schema Definition Performance / Best Practice
Is there a recommended way to find or create a record? (postgres)
ON CONFLICT RETURNING
since I have triggers which fire on row update and can't have them be called without an actual row change.Get plain typescript type from enum
export const userPermissionLevel = pgEnum("permissionLevel", ["admin","moderator","user","banned"]);
export const userPermissionLevel = pgEnum("permissionLevel", ["admin","moderator","user","banned"]);
Can't build app due to missing dependencies with Drizzle
Why does JSON configuration for drizzle-kit not require a dbCredentials?
dbCredentials
```
export default {
schema: "./schema.ts",...