Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ConnectionOptionsReader

Reads connection options from the ormconfig. Can read from multiple file extensions including env, json, js, xml and yml.

Hierarchy

  • ConnectionOptionsReader

Index

Constructors

constructor

  • Parameters

    • Optional options: object
      • Optional configName?: string

        Filename of the ormconfig configuration. By default its equal to "ormconfig".

      • Optional root?: string

        Directory where ormconfig should be read from. By default its your application root (where your app package.json is located).

    Returns ConnectionOptionsReader

Properties

Protected Optional options

options: object

Type declaration

  • Optional configName?: string

    Filename of the ormconfig configuration. By default its equal to "ormconfig".

  • Optional root?: string

    Directory where ormconfig should be read from. By default its your application root (where your app package.json is located).

Accessors

Protected baseConfigName

  • get baseConfigName(): string

Protected baseDirectory

  • get baseDirectory(): string

Protected baseFilePath

  • get baseFilePath(): string

Methods

all

get

has

  • has(name: string): Promise<boolean>

Protected load

Protected normalizeConnectionOptions

Generated using TypeDoc