How to generate query synchronously?
Besides other things I want to use kysely to generate subqueries for sequelize scopes. Is it possible to generate the query synchronously? Sequelize scopes do not accept async calls.
2 Replies
Yes, you can call
compile
instead of execute
See this recipe for more info https://kysely.dev/docs/recipes/splitting-build-compile-and-execute-codegreat! I'll give it a test