virk
Using raw SQL with `or` where
Okay, I think I got it after reading the expressions doc in and out https://kysely.dev/docs/recipes/expressions
8 replies
Solved: Exporting query builder classes
Okay, I get it. So basically you have been exposing interfaces publicly and keeping classes for internal runtime usage.
Yeah, I would personally love to have classes exported and also become the returning types, if that doesn't change a lot of internals
7 replies
Guidance to create a generic wrapper over Kysely
I have another use-case, lemme ask you guys before I give up on this one.
So, here I am trying to create a generic
firstOrCreate
helper function. This is how the implementation looks like so far.
I can execute the function with no errors.
However, the eb.and(searchAttributes)
method call gives an error10 replies