I need a way to run a parameterized query as part of a Kysely transaction
Hi all, I am doing a bunch of normal database CRUD in a Kysely transaction. As part of that transaction, I need to perform a database action using a 3rd party library that expects my "database" to expose a
query(query : string, params: unknown[])
. AFAICT there is no way for me to run a parameterized query with the kysely DB instance?
Worst case scenario
, I can manually manage the pool/transactions myself and wrap the client in a Kysely object but that certainly would not be ideal...2 Replies
Could I create my own compiled query - unsure what I'd set for query/queryId though...
I could also do something disgusting where I use regexes or something to split up my paramterized and call
sql
as if it were a normal function
Is what I've ended up with...Unknown User•3d ago
Message Not Public
Sign In & Join Server To View