smartdata/dist/smartdata.classes.db.d.ts

12 lines
371 B
TypeScript
Raw Permalink Normal View History

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