PG Array and drizzle-zod issues
Refactor transaction to batched expression
sql`...`.as(...)`
sql`...`.as(...)`
Updated drizzle-kit -> Error: Cannot find module 'drizzle-orm/pg-core'
Increment without first selecting
UPDATE table_name SET column_name = column_name + 1 WHERE condition;
UPDATE table_name SET column_name = column_name + 1 WHERE condition;
Libsql mapHranaError

Help with deciding when to use indexes.
DB operations don't execute when promise is not awaited
``typescript
function setEmailVerifiedWithoutBlocking(id: string) {
// If you replace
void by
await`, this works
void db.update(myTable).set({ emailVerified: true }).where(eq(myTable.id, id))...Transaction rolling back without error
Question about dynamic query building

Prepare statement throws type error for enums. How to get type safety for prepared values

Can I run the `migrate()` function exporting a raw SQL query in Drizzle ORM?
bun:sqlite FindFirst returns an object with all values undefined
select "id", "name", "location" from "company" limit ? -- params: [1]
I've narrowed it down by doing db.query.company.findFirst().prepare();
with this i can then do both .get()
and .all()
, it seems using get gives me the broken output while doing all give me the array with correct output.
...On Failed Migration rollback doesn't happend on the database
Help with refactoring a (probably unnecessarily) huge query
circular foreign keys
defaultPackageSizeId: integer("default_package_size_id").references(
(): AnyPgColumn => packageSize.id
),
defaultPackageSizeId: integer("default_package_size_id").references(
(): AnyPgColumn => packageSize.id
),
Postgres 'with' returns null with basic setup?
avoiding conflicts in mySQL
select and alter columns with drizzle-zod
const requestSchema = createDocumentSublineSchema.pick({...
How to create unique constraint on a column for a foreign key?

createInsertSchema does not infer notNull() correclty?