prepared statements placeholder typing
Schema
On the text property I get the following
The issue only seems to occur in the
set
part, is there a reason? A better way?3 Replies
Not sure if this will fix it or not, but try this:
What's this? Can't seem to find any documentation
It seems to work
It's not documented (like a lot of things), but I noticed
placeholder
had a .getSQL()
method that returned an SQL
object
https://github.com/drizzle-team/drizzle-orm/blob/76eb060acf4829fc25189efb57a11a1408fd1e15/drizzle-orm/src/sql/sql.ts#L539GitHub
drizzle-orm/drizzle-orm/src/sql/sql.ts at 76eb060acf4829fc25189efb5...
Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅 - drizzle-team/drizzle-orm