- Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Copy pathindex.d.ts
25 lines (20 loc) · 690 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
import{ClientConfig}from'pg'
exportfunctionparse(connectionString: string,options?: Options): ConnectionOptions
exportinterfaceOptions{
// Use libpq semantics when interpreting the connection string
useLibpqCompat?: boolean
}
exportinterfaceConnectionOptions{
host: string|null
password?: string
user?: string
port?: string|null
database: string|null|undefined
client_encoding?: string
ssl?: boolean|string
application_name?: string
fallback_application_name?: string
options?: string
}
exportfunctiontoClientConfig(config: ConnectionOptions): ClientConfig
exportfunctionparseIntoClientConfig(connectionString: string): ClientConfig