Schema in drizzle(pool, {schema}) doesn't work
Type of `tx` when using `db.transactions`
db.transactions
but I can't get the type of tx
working
so basically i don't know how to type tx
in the updateUserNotifications
function
```ts
const updateUserNotifications = async (
userId: UpdateUserAttributes["id"],...Update relationship within 1 query
getViewColumns function? (similar to getTableColumns)
await db.select().from(myView).innerJoin(myTable, eq(myTable.someId, myView.someId));
await db.select().from(myView).innerJoin(myTable, eq(myTable.someId, myView.someId));
one to one query
visit
and visit_log
, visit_log
stores the visitId for reference to the visit table
```const result = await this.db.query.visit.findMany({
where: and(eq(visit.userId, userId)),
with: {...extract table names from db.query
this.db.query
however if I were to do this...How does Drizzle Kit keep track of the migrations on PostgreSQL?
___drizzle_migration
table or anything similarimplementing generics with crud and classes
Insert
type is the inferred Insert of that specific table. Which doesn't make sense because update works as expected
```ts...
[SOLVED] When running a big bulk insert I get an error, MAX_PARAMETERS_EXCEEDED
weird behavior with nextjs appdir experimental cache
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)