Type alias DatabaseFactory<T>
DatabaseFactory<T>: ((entities?: (Type | ReflectionClass<any> | AbstractClassType)[], plugins?: DatabasePlugin[]) => Promise<Database<T>>)
Type Parameters
-
T extends DatabaseAdapter = DatabaseAdapter
Type declaration
-
- (entities?: (Type | ReflectionClass<any> | AbstractClassType)[], plugins?: DatabasePlugin[]): Promise<Database<T>>
-
Parameters
-
Optional
entities: (Type | ReflectionClass<any> | AbstractClassType)[]
-
Optional
plugins: DatabasePlugin[]
Returns Promise<Database<T>>