可选options: { configName?: string; root?: string }可选configName?: stringFilename of the ormconfig configuration. By default its equal to "ormconfig".
可选root?: stringDirectory where ormconfig should be read from. By default its your application root (where your app package.json is located).
受保护 可选options可选configName?: stringFilename of the ormconfig configuration. By default its equal to "ormconfig".
可选root?: stringDirectory where ormconfig should be read from. By default its your application root (where your app package.json is located).
受保护baseGets configuration file name.
受保护baseGets directory where configuration file should be located.
受保护baseGets directory where configuration file should be located and configuration file name.
Returns all connection options read from the ormconfig.
Gets a connection with a given name read from ormconfig. If connection with such name would not be found then it throw error.
Checks if there is a TypeORM configuration file.
受保护loadLoads all connection options from a configuration file.
todo: get in count NODE_ENV somehow
受保护normalizeNormalize connection options.
Reads connection options from the ormconfig.