Skip to content
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

Open
sombriks opened this issue May 21, 2024 · 5 comments
Open

pglite support #6078

sombriks opened this issue May 21, 2024 · 5 comments

Comments

@sombriks
Copy link
Contributor

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

@czeidler
Copy link

czeidler commented Aug 13, 2024

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...

@czeidler
Copy link

I created: https://www.npmjs.com/package/knex-pglite to use pglite with knex

@jawadst
Copy link

jawadst commented Aug 28, 2024

Thanks a lot @czeidler. I tried your package and it worked great!

@sombriks
Copy link
Contributor Author

this is amazing, i guess knex is also a first class frontend library now!

@sombriks
Copy link
Contributor Author

sombriks commented Sep 4, 2024

@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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants