-
Notifications
You must be signed in to change notification settings - Fork 282
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
alternate dialects in the multiverse of sqlite #1292
Comments
There are several dialects available at https://github.com/subframe7536/kysely-sqlite-tools However, the Node.js dialect is not supported yet subframe7536/kysely-sqlite-tools#13 |
would be sick to have node's built in sqlite driver into kysely as a native dialect! |
I think |
It is not similar. Getting
prepare(sql: string): {
all(parameters: unknown[])
reader: boolean
run(parameters: unknown[])
}
prepare(sql: string): {
all(namedParameters: Record<string, unknown>, ...anonymousParameters: unknown[])
reader: boolean
run(namedParameters: Record<string, unknown>, ...anonymousParameters: unknown[])
} More incompatibilities with migrations. |
haven't played with any migrations yet, but I took a stab here. It relies on VERY new versions of node that aren't yet typed. https://github.com/mmgoodnow/kysely-node-sqlite/blob/df086d566e9e9cefb0b6d8edc253a8cd428c8d2b/dialect/sqlite-dialect.ts The differences are pretty minimal -
|
I'm currently fine using the better-sqlite3 dialect, switching from postgresql to sqlite sped up my dx so fast.
Just crossed my mind though, since on postgresql it defaults to
pg
but there's an alternate one based onpostgres
which is also very cool.. on sqlite do you see any benefits on using the nodejs internal sqlite they're working on, and also on turso's limbo?Links mentioned
The text was updated successfully, but these errors were encountered: