-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
31 lines (31 loc) · 948 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
import type mssqlTypes from 'mssql';
/**
* The driver that will be used.
* - msnodesqlv8 on Windows.
* - tedious or all other operating systems.
*/
export declare const driver: string;
/**
* Connect to a MSSQL database.
* Creates a new connection if the configuration does not match a seen configuration.
* @param config - MSSQL configuration.
* @returns A MSSQL connection pool.
*/
export declare function connect(config: mssqlTypes.config): Promise<mssqlTypes.ConnectionPool>;
/**
* Release all open connection pools.
*/
export declare function releaseAll(): Promise<void>;
/**
* Retrieves the number of managed connection pools.
* @returns The number of pools.
*/
export declare function getPoolCount(): number;
declare const _default: {
driver: string;
connect: typeof connect;
releaseAll: typeof releaseAll;
getPoolCount: typeof getPoolCount;
};
export default _default;
export type * as mssqlTypes from 'mssql';