import { IObjectHandle } from './framework/IObjectHandle'; import { EntityType } from './framework/Constants'; /** * Interface for relevant connection methods */ export interface IConnection { /** * Open a connection */ connect(): Promise; /** * Optional direct query method */ query?(query: any, parameters?: any[]): Promise; /** * Close connection */ close(): Promise; /** * Test the current connection configuration */ ping?(): Promise; /** * Return object handle for passed object * * @param type */ for?(type: EntityType): IObjectHandle; }