Skip to main content
Deno 2 is finally here 🎉️
Learn more

kysely-deno-postgres-dialect

ci Latest version

Kysely dialect for PostgreSQL using the deno-postgres client.

🚀 Getting started

import { PostgresDialect } from "https://deno.land/x/kysely_deno_postgres_dialect/mod.ts";

const dialect = new KyselyDenoPostgresDialect({
  pool: new Pool(
    {
      database: "postgres",
      hostname: "localhost",
      password: "postgres",
      port: 5432,
      user: "postgres",
    },
    10,
    true,
  ),
});

export const db = new Kysely<Database>({
  dialect,
});