{ ken }
DTDrizzle Team
•Created by { ken } on 10/11/2023 in #help
TransactionRollbackError
Is anyone successfully using a drizzle transaction rollback in pg? I'm currently getting TransactionRollbackError even in non-pooled connection.
1 replies
DTDrizzle Team
•Created by { ken } on 8/18/2023 in #help
Svelte and Drizzle and types?
Using Drizzle and NextJS, Drizzle provides types based on the schema.
Using Drizzle with Svelte, all JS functionality works but none of the Drizzle provided types work. Instead, all auto types are: "any". Any thoughts?
For example, using this schema.ts in NextJS
import { pgTable } from 'drizzle-orm/pg-core';
const myTable = pgTable('my_table', {...});
correctly produces the type:
const myTable: PgTableWithColumns<{
name: "my_table";
schema: undefined;
columns: { ... };
}>
but using the same schema.ts code in Svelte-kit incorrectly produces 'any' as a type.
const myTable:any
2 replies
DTDrizzle Team
•Created by { ken } on 6/26/2023 in #help
Auto update for updated_at
Any thoughts on how I could implement an auto updated field triggered on updates only on Postgres?
I see onUpdateNow() for MySql. Seems Postgres supports triggers for this. Can/should I use Postgres triggers via Drizzle?
If not, does it make sense to send the updated_at over the wire from the client?
14 replies