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

x/kysely_postgrs_js_dialect/mod.ts>PostgresJSConnection

Kysely dialect for PostgreSQL using the Postgres.js client.
Latest
class PostgresJSConnection
implements DatabaseConnection
Re-export
import { PostgresJSConnection } from "https://deno.land/x/kysely_postgrs_js_dialect@v0.27.8/mod.ts";

A database connection that uses the postgresjs library.

Constructors

new
PostgresJSConnection(reservedConnection: postgres.ReservedSql)

Methods

beginTransaction(settings: TransactionSettings): Promise<void>
commitTransaction(): Promise<void>
executeQuery<R>(compiledQuery: CompiledQuery<unknown>): Promise<QueryResult<R>>
rollbackTransaction(): Promise<void>
streamQuery<R>(compiledQuery: CompiledQuery<unknown>, chunkSize: number): AsyncIterableIterator<QueryResult<R>>