smartdata/dist/smartdata.classes.dbconnection.d.ts

12 lines
385 B
TypeScript
Raw Permalink Normal View History

2016-09-11 16:01:46 +00:00
/// <reference types="q" />
import * as plugins from './smartdata.plugins';
export declare type TDbConnectionStatus = 'disconnected' | 'connected' | 'failed';
export declare class DbConnection {
dbUrl: string;
db: plugins.mongodb.Db;
status: TDbConnectionStatus;
constructor(dbUrl: string);
connect(): plugins.q.Promise<any>;
close(): plugins.q.Promise<any>;
}