smartdata/dist/smartdata.classes.db.d.ts
2016-09-12 23:50:25 +02:00

12 lines
371 B
TypeScript

/// <reference types="q" />
import * as plugins from './smartdata.plugins';
export declare type TConnectionStatus = 'disconnected' | 'connected' | 'failed';
export declare class Db {
dbUrl: string;
db: plugins.mongodb.Db;
status: TConnectionStatus;
constructor(dbUrl: string);
connect(): plugins.q.Promise<any>;
close(): plugins.q.Promise<any>;
}