I've accidentally forked this dialect as i was trying to ease integration into mikro-orm v7.
You can see the entire list of changes here https://github.com/jadejr/kysely-pglite/commits/fork/
It is currently relies on a specific commit from the (at the time) in progress 0.28 branch. It will be replaced with .28 on release.
Some highlights of the changes:
- Match the interface of the upstream postgres dialect
- Use nearly the same
*DialectConfig (including onCreateConnection)
- Accept a function that returns PGLite to initialize on demand
- No
dataDir argument
- Replace globby with tinyglobby
- Match the 0.28 driver interfaces regarding savepoints and transaction settings
- Doesn't expose codegen directly to ease bundling but rather as a subpath. Some bundlers have trouble ignoring the dynamic imports in the
.d.ts files.
I'd be willing to split anything out you find interesting here. I have not tested the codegen capability in general since I haven't yet had a need for it.
I've accidentally forked this dialect as i was trying to ease integration into mikro-orm v7.
You can see the entire list of changes here https://github.com/jadejr/kysely-pglite/commits/fork/
It is currently relies on a specific commit from the (at the time) in progress 0.28 branch. It will be replaced with .28 on release.
Some highlights of the changes:
*DialectConfig(includingonCreateConnection)dataDirargument.d.tsfiles.I'd be willing to split anything out you find interesting here. I have not tested the codegen capability in general since I haven't yet had a need for it.