How to like left value to right raw statement?
13 Replies
great! thank you very much
@Igal any idea why I get this?
What kysely version are you on?
❯ npm -v kysely >>> 8.19.2
that's npm version.
try
npm explain kysely
❯ npm explain kysely
[email protected]
node_modules/kysely
kysely@"^0.25.0" from the root project
I installated the latest one and it works! thanks a lot
@Igal however after upgrade to the latest version I get following error. I checked the release history and fixed multiple deprecated things but this one is hard to identify...
yeah, it fixed the issue. can you provide a link to a source explaining the SqlBool type and why/how to use it? I don't want to bother with stupid questions. I prefer to read docs and understand it.
You don't need to use
SqlBool
. boolean
is is just fine or 0|1
if you're on a dialect that doesn't have booleans.
SqlBool
is just boolean | 1 | 0
which is the union of each dialects' boolean types. If you know your dialect (as you always should with Kysely) you can use its boolean typeI am on psql dialect btw