Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Connection

Index

Constructors

constructor

Properties

capabilities

capabilities: number = 0

config

config: ClientConfig

serverVersion

serverVersion: string = ""

state

state: ConnectionState = ConnectionState.CONNECTING

Accessors

remoteAddr

remoteAddr:

Methods

close

  • close(): void
  • Returns void

connect

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

execute

  • Parameters

    • sql: string
    • Optional params: any[]

    Returns Promise<ExecuteResult>

query

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

    • sql: string
    • Optional params: any[]

    Returns Promise<ExecuteResult | any[]>

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