UNPKG

@randombenj/db

Version:

Display, search and copy LXD-images using a web interface.

11 lines (10 loc) 487 B
import { PostgresConnectionOptions } from 'typeorm/driver/postgres/PostgresConnectionOptions'; import { SqliteConnectionOptions } from 'typeorm/driver/sqlite/SqliteConnectionOptions'; import { IDatabaseSettings } from '.'; /** * Returns the database configuration * depending on the settings of * LXDHubAPI class and the set * NODE_ENV environment variable. */ export declare function getOrmConfig(settings?: IDatabaseSettings): PostgresConnectionOptions | SqliteConnectionOptions;