JustWayne
JustWayne
KKysely
Created by JustWayne on 4/27/2025 in #help
selectFrom or getExecutor not a function with custom dialect.
OK, nevermind. My function was marked as async but I had moved the async functionality elsewhere so I was trying to query a Promise and typescript didn't catch the issue.
5 replies
KKysely
Created by JustWayne on 4/27/2025 in #help
selectFrom or getExecutor not a function with custom dialect.
The selectFrom property of the Kysely instance doesn't even exist when using this dialect. It's so weird.
5 replies
KKysely
Created by JustWayne on 4/27/2025 in #help
selectFrom or getExecutor not a function with custom dialect.
I confirmed that the Kysely instance has an executor object after creating it. It prints out as typeof object and evaluates to DefaultQueryExecutor {} When I added some logs, I see that Kysely does not even try to acquire a connection before it has an issue so it's something with the query builder that breaks.
5 replies