Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/hex/src/lib/data/deps.ts>postgres.Session

An ecosystem delivering practices, philosophy and portability. Powered By Deno and JavaScript.
Latest
interface postgres.Session
import { type postgres } from "https://deno.land/x/hex@0.6.5/src/lib/data/deps.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