Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface mariadbPool

Hierarchy

Index

Methods

  • activeConnections(): number
  • Get current active connections.

    Returns number

  • emit(eventName: string | symbol, ...args: any[]): boolean
  • Parameters

    • eventName: string | symbol
    • Rest ...args: any[]

    Returns boolean

  • end(): Promise<void>
  • Close all connection in pool

    Returns Promise<void>

  • escape(value: any): string
  • This function permit to escape a parameter properly according to parameter type to avoid injection.

    Parameters

    • value: any

      parameter

    Returns string

  • escapeId(identifier: string): string
  • This function permit to escape a Identifier properly . See Identifier Names for escaping. Value will be enclosed by '' character if content doesn't satisfy: <OL> <LI>ASCII: [0-9,a-z,A-Z$_] (numerals 0-9, basic Latin letters, both lowercase and uppercase, dollar sign, underscore)</LI> <LI>Extended: U+0080 .. U+FFFF and escaping '' character if needed.

Parameters

Returns string

Generated using TypeDoc