Skip to main content

kysely-deno-postgres-dialect

ci

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,
});