Parameterization from string and array of values
I have a sql string with placeholders and an array of values for those placeholders. How can I have drizzle parameterize and execute it?
for context I'm trying to have pg-boss use the same session as my drizzle transaction. pg-boss generates strings and arrays of values, but I can't find anything to render the sql in the api.
I am using node-postgres.
3 Replies
executeSql
parameters look like this:
Through more debugging I found that typescript is reporting that there is no session property on the transaction object, but at runtime it is there 🤔This executes the query successfully
Type checking complains that session is not available:
Property 'session' does not exist on type 'PgTransaction<NodePgQueryResultHKT, {}, ExtractTablesWithRelations<{}>>'. [2339]

GitHub
[BUG]: Type Error in PgTransaction Missing $client Property After U...
What version of drizzle-orm are you using? 0.35.1 What version of drizzle-kit are you using? 0.26.2 Describe the Bug Hello Drizzle ORM Team, I'm encountering a TypeScript type error after upgra...