Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

buildUpdateSetStr

  • buildUpdateSetStr(attrs: string[]): string
  • Builds the attibute-value assignment placeholder string for the SET portion of a SQL UPDATE query.

    Parameters

    • attrs: string[]

      Attributes to be set in UPDATE query.

    Returns string

    string value of the series of assignments to be placed in the SET portion of an UPDATE query.

connect_error

  • connect_error(err: any, reject: (reason?: any) => void): void
  • Builds error message for database connection errors.

    Parameters

    • err: any

      error object from database driver to be logged.

    • reject: (reason?: any) => void

      rejection function for a returned promise.

        • (reason?: any): void
        • Parameters

          • Optional reason: any

          Returns void

    Returns void

query_err

  • query_err(err: any, reject: (reason?: any) => void): void
  • Builds error message for database query errors.

    Parameters

    • err: any

      error object from database driver to be logged.

    • reject: (reason?: any) => void

      rejection function for a returned promise.

        • (reason?: any): void
        • Parameters

          • Optional reason: any

          Returns void

    Returns void

Generated using TypeDoc