K
Kysely2y 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
koskimas2y 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
mikeOP2y ago
great! I'll give it a test

Did you find this page helpful?