UNPKG

typeorm-extension

Version:

A library to create/drop database, simple seeding data sets, ...

37 lines (36 loc) 968 B
import type { DatabaseType } from 'typeorm/driver/types/DatabaseType'; import type { DataSourceCacheOption } from '../data-source'; import type { EnvironmentName } from './constants'; export interface Environment { env: `${EnvironmentName}`; seeds: string[]; factories: string[]; type?: DatabaseType; url?: string; host?: string; port?: number; username?: string; password?: string; database?: string; sid?: string; schema?: string; /** * dropSchema */ schemaDrop?: boolean; extra?: any; synchronize?: boolean; migrations: string[]; migrationsRun?: boolean; migrationsTableName?: string; entities: string[]; entityPrefix?: string; metadataTableName?: string; subscribers: string[]; logging: string[] | boolean | string; logger?: string; maxQueryExecutionTime?: number; debug?: string; cache?: DataSourceCacheOption; uuidExtension?: string; }