-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
49 lines (49 loc) · 937 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export = Postgre;
/**
* Helper to work with Postgres DB.
*/
declare class Postgre {
/**
*
* @returns {string[]}
* @private
*/
private static _checkRequirements;
/**
*
* @param {object} config
*/
constructor(config: object);
/**
*
* @param {object} config
* @private
*/
private _validateConfig;
options: {
default: {
port: number;
};
};
connections: {};
/**
* Open connect to DB
* @param {string} dbName
* @returns {Promise<*>}
* @private
*/
private _openConnect;
/**
* query db
* @param {string} query
* @param [{ [key: string]: any }] params
* @param {string} dbName
* @returns {Promise<*>}
*/
query(query: string, params: { [key: string]: any }, dbName: string): Promise<any>;
/**
*
* @private
*/
private _finishTest;
}