K
Kysely16mo ago
mike

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
koskimas
koskimas16mo ago
Yes, you can call compile instead of execute See this recipe for more info https://kysely.dev/docs/recipes/splitting-build-compile-and-execute-code
mike
mikeOP16mo ago
great! I'll give it a test
Want results from more Discord servers?
Add your server