UNPKG

@jadejr/kysely-pglite

Version:

Kysely dialect for @electric-sql/pglite (temporary fork https://github.com/dnlsandiego/kysely-pglite)

21 lines 617 B
import { PostgresAdapter, generate } from 'kysely-codegen'; import { KyselyPGliteIntrospector } from './introspector.js'; export class Codegen { dialect; constructor(dialect) { this.dialect = dialect; } async generate(opts) { return await generate({ ...opts, dialect: { adapter: new PostgresAdapter(), introspector: new KyselyPGliteIntrospector(), createKyselyDialect: async () => { return this.dialect; }, }, }); } } //# sourceMappingURL=codegen.js.map