-
Notifications
You must be signed in to change notification settings - Fork 12
/
index.js
28 lines (26 loc) · 872 Bytes
/
index.js
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
const CUBRIDConnection = require('./src/CUBRIDConnection');
const Helpers = require('./src/utils/Helpers');
/**
* Helper functions
* @type {*}
*/
exports.Helpers = Helpers;
/**
* Creates a new CUBRID connection. This function creates a new instance of
* CUBRIDConnection, however doesn't establish actual connection with the
* broker.
*
* @alias createClient, createConnection
* @param hosts
* @param port
* @param user
* @param password
* @param database
* @param connectionTimeout
* @param maxConnectionRetryCount
* @param logger
* @return {CUBRIDConnection}
*/
exports.createConnection = exports.createCUBRIDConnection = function (hosts, port, user, password, database, connectionTimeout, maxConnectionRetryCount, logger) {
return new CUBRIDConnection(hosts, port, user, password, database, connectionTimeout, maxConnectionRetryCount, logger);
};