feat(IConnectionOptions): export ConnectionOptions
This commit is contained in:
parent
766ae1d1ff
commit
85a6444263
5
dist/smartdata.classes.db.d.ts
vendored
5
dist/smartdata.classes.db.d.ts
vendored
@ -1,7 +1,8 @@
|
|||||||
import * as plugins from "./smartdata.plugins";
|
import * as plugins from "./smartdata.plugins";
|
||||||
import { Objectmap } from "lik";
|
import { Objectmap } from "lik";
|
||||||
import { DbTable } from "./smartdata.classes.dbtable";
|
import { DbTable } from "./smartdata.classes.dbtable";
|
||||||
import { ConnectionOptions } from "rethinkdb";
|
import { ConnectionOptions as IConnectionOptions } from "rethinkdb";
|
||||||
|
export { IConnectionOptions };
|
||||||
/**
|
/**
|
||||||
* interface - indicates the connection status of the db
|
* interface - indicates the connection status of the db
|
||||||
*/
|
*/
|
||||||
@ -12,7 +13,7 @@ export declare class Db {
|
|||||||
dbConnection: plugins.rethinkDb.Connection;
|
dbConnection: plugins.rethinkDb.Connection;
|
||||||
status: TConnectionStatus;
|
status: TConnectionStatus;
|
||||||
dbTablesMap: Objectmap<DbTable<any>>;
|
dbTablesMap: Objectmap<DbTable<any>>;
|
||||||
constructor(connectionOptionsArg: ConnectionOptions);
|
constructor(connectionOptionsArg: IConnectionOptions);
|
||||||
/**
|
/**
|
||||||
* supply additional SSl options needed to connect to certain Rethink DB servers (e.g. compose.io)
|
* supply additional SSl options needed to connect to certain Rethink DB servers (e.g. compose.io)
|
||||||
*/
|
*/
|
||||||
|
2
dist/smartdata.classes.db.js
vendored
2
dist/smartdata.classes.db.js
vendored
@ -73,4 +73,4 @@ class Db {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.Db = Db;
|
exports.Db = Db;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRkYXRhLmNsYXNzZXMuZGIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGRhdGEuY2xhc3Nlcy5kYi50cyJdLCJuYW1lcyI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||
constructor();
|
constructor();
|
||||||
static getInstances<T>(filterArg: any): Promise<T[]>;
|
static getInstances<T>(filterArg: any): Promise<T[]>;
|
||||||
|
static getInstance<T>(filterArg: any): Promise<T>;
|
||||||
/**
|
/**
|
||||||
* saves this instance but not any connected items
|
* saves this instance but not any connected items
|
||||||
* may lead to data inconsistencies, but is faster
|
* may lead to data inconsistencies, but is faster
|
||||||
|
10
dist/smartdata.classes.dbdoc.js
vendored
10
dist/smartdata.classes.dbdoc.js
vendored
@ -52,6 +52,14 @@ class DbDoc {
|
|||||||
return returnArray;
|
return returnArray;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
static getInstance(filterArg) {
|
||||||
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
let result = yield this.getInstances(filterArg);
|
||||||
|
if (result && result.length > 0) {
|
||||||
|
return result[0];
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* saves this instance but not any connected items
|
* saves this instance but not any connected items
|
||||||
* may lead to data inconsistencies, but is faster
|
* may lead to data inconsistencies, but is faster
|
||||||
@ -98,4 +106,4 @@ class DbDoc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.DbDoc = DbDoc;
|
exports.DbDoc = DbDoc;
|
||||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRkYXRhLmNsYXNzZXMuZGJkb2MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGRhdGEuY2xhc3Nlcy5kYmRvYy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBRUEsNkJBQWdDO0FBT2hDOztHQUVHO0FBQ0g7SUFDRSxNQUFNLENBQUMsQ0FBQyxNQUFrQixFQUFFLEdBQVcsRUFBRSxFQUFFO1FBQ3pDLE9BQU8sQ0FBQyxHQUFHLENBQUMsWUFBWSxDQUFDLENBQUM7UUFDM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HQyJ9
|
@ -3,7 +3,11 @@ import { Objectmap } from "lik";
|
|||||||
|
|
||||||
import { DbTable } from "./smartdata.classes.dbtable";
|
import { DbTable } from "./smartdata.classes.dbtable";
|
||||||
|
|
||||||
import { Connection as dbConnection, ConnectionOptions } from "rethinkdb";
|
import { Connection as dbConnection, ConnectionOptions as IConnectionOptions } from "rethinkdb";
|
||||||
|
|
||||||
|
export {
|
||||||
|
IConnectionOptions
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* interface - indicates the connection status of the db
|
* interface - indicates the connection status of the db
|
||||||
@ -21,7 +25,7 @@ export class Db {
|
|||||||
status: TConnectionStatus;
|
status: TConnectionStatus;
|
||||||
dbTablesMap = new Objectmap<DbTable<any>>();
|
dbTablesMap = new Objectmap<DbTable<any>>();
|
||||||
|
|
||||||
constructor(connectionOptionsArg: ConnectionOptions) {
|
constructor(connectionOptionsArg: IConnectionOptions) {
|
||||||
this.dbName = connectionOptionsArg.db;
|
this.dbName = connectionOptionsArg.db;
|
||||||
this.connectionOptions = connectionOptionsArg;
|
this.connectionOptions = connectionOptionsArg;
|
||||||
this.status = "initial";
|
this.status = "initial";
|
||||||
|
Loading…
Reference in New Issue
Block a user