Adamgreg
Explore posts from serversDTDrizzle Team
•Created by Adamgreg on 9/14/2023 in #help
Prepare raw sql query (Postgres)
Hi, I need to do a recursive query, so I think I need to use the magic sql operator to build it. Is it possible to make a prepared statement this way? I haven't been able to find a way, but something like
db.prepare(sql`...`)
would make sense to me.1 replies
`deno check` error: Cannot find name 'Deno'`
In my project,
deno check
has started producing the error TS2304 [ERROR]: Cannot find name 'Deno'
. I've found a lot of reports about this error coming from the VS Code extension, but in my case it's coming from Deno itself, and the VS Code extension does NOT show this problem. I'm quite confused! Can anybody suggest a solution please?10 replies
DTDrizzle Team
•Created by Adamgreg on 9/2/2023 in #help
Deferrable foreign key constraints
Hi, does anyone know a way to declare deferrable foreign key constraints when defining a Postgres table using
pgTable
, and a way to issue SET CONSTRAINTS
within a transaction when querying in Drizzle? Thanks!
https://www.postgresql.org/docs/current/sql-set-constraints.html3 replies