Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Client

Index

Properties

config

config: ClientConfig

Accessors

pool

pool:

Methods

close

  • close(): Promise<void>
  • Returns Promise<void>

connect

  • Parameters

    Returns Promise<Client>

    Clinet instance

execute

  • Parameters

    • sql: string
    • Optional params: any[]

    Returns Promise<ExecuteResult>

query

  • query(sql: string, params: any[]): Promise<any>
  • Parameters

    • sql: string
    • Optional params: any[]

    Returns Promise<any>

transaction

  • Type parameters

    • T

    Parameters

    Returns Promise<T>

useConnection

  • useConnection<T>(fn: function): Promise<T>
  • Type parameters

    • T

    Parameters

    Returns Promise<T>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc