4 ms·
I've had issues when needing to use sql functions.
by plopz 2y ago
I've had issues when needing to use sql functions.
- thrw42A8N 2y agoWhat issue? Kysely has an example to do this.
- plopz 2y agoThis was one of the problems I ran into https://github.com/kysely-org/kysely/issues/664 https://github.com/kysely-org/kysely/issues/664, not being able to use functions inside onDuplicateKeyUpdate
- thrw42A8N 2y agoBasically no ORM supports such specific functionality of a specific DBMS. In any case you'd have to use raw SQL. I don't see the problem, this is expected. I don't see how not using Kysely would make it better overall - you simply write the raw SQL yourself as you would without it; but you gain so much type safety by using it.