-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeDriver is not exported #998
Comments
Hey 👋 Why are you trying to instantiate @koskimas maybe we should alter the output types post-build to remove |
I wrote an Audit plugin that audits row data for all create/update/delete queries, but this block of code restricts changing https://github.com/kysely-org/kysely/blob/master/src/query-executor/query-executor-base.ts#L37 I am currently doing this as there isn't an async callback called before a query is executed in order to track deletes. I overrode this logic by instantiating I needed to transform a delete query into a select, so that I can audit data that is being deleted before the delete query is ran, in a generic way (applied to all deletes ran). The Thoughts? |
You shouldn't convert queries into other queries inside Kysely. Kysely is a query builder, and if you build a delete query, it should build a delete query. As @igalklebanov said, the We should remove this check though as it's too prohibitive. |
Maybe make this configurable and keep it strict by default? As a way to defend from "bad faith plugins".. |
I'm trying to initialize
Kysely
usingKyselyProps
and anexecutor
has a dependency ofRuntimeDriver
, but it is not currently exported and I would like to avoid c/p this class in order to override some functionality in the base executor.Can
RuntimeDriver
be exported?The text was updated successfully, but these errors were encountered: