kysely-pglite-dialect
v1.0.0
Published
[Kysely](https://github.com/koskimas/kysely) dialect for [PGlite](https://pglite.dev/).
Downloads
67
Readme
kysely-pglite
Setup
npm i kysely-pglite kysely @electric-sql/pglite
Usage
Init Kysely like:
import { Kysely } from "kysely"
import { PGlite } from "@electric-sql/pglite"
import { PGliteDialect } from "kysely-pglite"
const db = new Kysely<{
pglite_test_table: { id: Generated<number>; data: string }
}>({
dialect: new PGliteDialect(new PGlite()),
})
Credits
Thanks to kysely-neon which was used as a template for this repo.