Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>kysely.MysqlPool

Kysely dialect for PostgreSQL using the deno-postgres client.
Latest
interface kysely.MysqlPool
import { type kysely } from "https://deno.land/x/kysely_deno_postgres_dialect@v0.27.1/mod.ts";
const { MysqlPool } = kysely;

This interface is the subset of mysql2 driver's Pool class that kysely needs.

We don't use the type from mysql2 here to not have a dependency to it.

https://github.com/sidorares/node-mysql2#using-connection-pools

Methods

getConnection(callback: (error: unknown, connection: MysqlPoolConnection) => void): void
end(callback: (error: unknown) => void): void