orbitdbconnector
Version:
Database connection provider based on Typeorm with a bunch of tweak to be able to connect to a DB dynamically with or without entities plus perf gains.
23 lines (22 loc) โข 954 B
TypeScript
import { DataSource, DataSourceOptions, EntitySchema } from 'typeorm';
import { EntityClassOrSchema } from './definitions/types';
/**
* ๐จ Project Name : Array-Querier
* ๐จ Project Repo : https://github.com/orbitturner/OrbiDbConnector
* ๐จ My GitHub : https://github.com/orbitturner
* ๐จ My LinkedIn : https://linkedin.com/in/orbitturner
* ๐จ My Twitter : https://twitter.com/orbitturner
*/
export declare class OrbitDbConnector {
private logger;
constructor();
/**
* ==================================
* ๐กโ CLASS PUBLIC FACADE โ๐ก
* ==================================
* Gateway used to execute the Orbit Connector
* and returns the new Connection data to the caller.
* @return TypeOrmDatasource: DataSource;
*/
doConnection(connectionProps: DataSourceOptions, entities?: (string | EntitySchema<any> | EntityClassOrSchema)[]): Promise<DataSource>;
}