Skip to content

Instantly share code, notes, and snippets.

View ctrlraul's full-sized avatar
:electron:
Working from home

Raul ctrlraul

:electron:
Working from home
View GitHub Profile
@omar2205
omar2205 / PgDriver.ts
Last active June 15, 2025 03:43
Deno + Kysely + Postgres
import { Client } from 'postgres'
import { CompiledQuery, DatabaseConnection, Driver, QueryResult, TransactionSettings } from 'kysely'
type QueryArguments = unknown[] | Record<string, unknown>
export class PostgresDriver implements Driver {
readonly #connectionMutex = new ConnectionMutex()