Skip to main content
Module

x/kysely_deno_postgres_dialect/mod.ts>postgres.Session

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

Properties

current_transaction: string | null

This is the code for the transaction currently locking the connection. If there is no transaction ongoing, the transaction code will be null

pid: number | undefined

This is the process id of the current session as assigned by the database on connection. This id will undefined when there is no connection stablished

tls: boolean | undefined

Indicates if the connection is being carried over TLS. It will be undefined when there is no connection stablished

transport: "tcp" | "socket" | undefined

This indicates the protocol used to connect to the database

The two supported transports are TCP and Unix sockets