How to select from a function with parameters?
I understand that
kysely
will not natively support stored procedures / functions, and was wondering if there's a pattern for this:
I created a helper:
But, I'm not exactly sure how I can use that since db.selectFrom()
expects a table name.2 Replies
https://kysely-org.github.io/kysely/interfaces/Sql.html
is this what you're looking for?
Sql | kysely
Documentation for kysely
Thanks. I think this might work: