Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PostgresConnection

An implementation of a database Connection for dealing with PostgreSQL servers.

Hierarchy

Index

Constructors

constructor

Properties

Protected bus

Protected Optional client

client: Client

The pg database client.

Readonly config

config: any = {}

Protected Readonly logging

logging: Logging

Readonly name

name: string

Accessors

Private appClassApplication

Methods

Protected app

asTransaction

  • asTransaction<T>(closure: () => Awaitable<T>): Promise<T>

close

  • close(): Promise<void>

Protected container

dialect

getBoundMethod

  • getBoundMethod(methodName: string): (...args: any[]) => any
  • Get the method with the given name from this class, bound to this class.

    Parameters

    • methodName: string

    Returns (...args: any[]) => any

    function

      • (...args: any[]): any
      • Parameters

        • Rest ...args: any[]

        Returns any

init

  • init(): Promise<void>

Protected make

  • make<T>(target: any, ...parameters: any[]): T

query

Protected queryExecuted

  • queryExecuted(query: string): Promise<void>

schema

  • schema(name?: string): Schema
Extollo Logo

extollo (v. latin) - to lift up, to elevate

Extollo is a free & libre application framework in TypeScript.