-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
pglite support #6078
Comments
I guess you have to implement a dialect like in https://github.com/knex/knex/blob/master/lib/dialects/pgnative/index.js, right? But what is the required interface for the driver? is there any docs on it? Hard to figure out without type information... |
I created: https://www.npmjs.com/package/knex-pglite to use pglite with knex |
Thanks a lot @czeidler. I tried your package and it worked great! |
this is amazing, i guess knex is also a first class frontend library now! |
@czeidler it works on browser nicely, thank you so much for your work! https://github.com/sombriks/vue-pglite-knex-example it think it is worth to be mentioned in the docs, i'll open the PR to the knex docs! |
Environment
Knex version: latest
Database + version: https://github.com/electric-sql/pglite
OS: any supported by pglite
Select applicable template from below.
If issue is about oracledb support, tag @ atiertant. For MSSql tag @ smorey2.
Rest of dialects don't need tags.
If issue is about TypeScript definitions, tag @ lorefnon.
Feature discussion / request
pglite seems very straightforward to use directly, but i am wondering what would be needed to add support for this to use it like we use sqlite for example
The text was updated successfully, but these errors were encountered: