import { type kysely } from "https://dotland.deno.dev/x/kysely_postgrs_js_dialect@v0.27.3/mod.ts";
const { Driver } = kysely;
A Driver creates and releases {@link DatabaseConnection | database connections} and is also responsible for connection pooling (if the dialect supports pooling).
Methods
Initializes the driver.
After calling this method the driver should be usable and acquireConnection
etc.
methods should be callable.
beginTransaction(connection: DatabaseConnection, settings: TransactionSettings): Promise<void>
Begins a transaction.
releaseConnection(connection: DatabaseConnection): Promise<void>
Releases a connection back to the pool.