-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
61 lines (60 loc) · 1.77 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
import { Pool } from 'pg'
import { DataAccess } from './lib/core/dataAccess'
import { ModelBase } from './lib/model'
import { DataType } from './lib/dataType'
export declare class PgLink {
constructor(args: {
/**
* @description Postgresql host, default localhost
* @type {string}
*/
host?: string
/**
* @description Postgresql port, default 5432
* @type {number}
*/
port?: number
/**
* @description Postgresql user name, default postgres
* @type {string}
*/
userName?: string
/**
* @description Postgresql password, default empty
* @type {string}
*/
password?: string
/**
* @description Postgresql database, default postgres
* @type {string}
*/
database?: string
/**
* @description Postgresql max connection, default 10
* @type {number}
*/
connectionMax?: number
/**
* @description Number of milliseconds to wait before timing out when connecting a new client, by default this is 0 which means no timeout
* @type {number}
*/
connectionTimeoutMillis?: number
/**
* @description Number of milliseconds a client must sit idle in the pool and not be checked out, before it is disconnected from the backend and discarded, default is 10000 (10 seconds) - set to 0 to disable auto-disconnection of idle clients
* @type {number}
*/
idleTimeoutMillis?: number
/**
* @description Connect using ssl connection
* @type {boolean}
*/
ssl?: boolean
/**
* @description used to define fields that should be automatically updated with a current timestamp default []
* @type {Array<string>}
*/
globalAutoSetTimeFields?: Array<string>
})
public Model: typeof ModelBase
public DataTypes: DataType
}