Options
All
  • Public
  • Public/Protected
  • All
Menu

Common driver utility functions.

Hierarchy

  • DriverUtils

Index

Methods

Static buildDriverOptions

  • buildDriverOptions(options: any, buildOptions?: undefined | object): any
  • Normalizes and builds a new driver options. Extracts settings from connection url and sets to a new options object.

    Parameters

    • options: any
    • Optional buildOptions: undefined | object

    Returns any

Static Private parseConnectionUrl

  • parseConnectionUrl(url: string): object
  • Extracts connection data from the connection url.

    Parameters

    • url: string

    Returns object

    • database: undefined | string
    • host: string
    • password: string
    • port: undefined | number
    • username: string

Generated using TypeDoc