1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | Object.defineProperty(exports, "BulkLoad", {
|
7 | enumerable: true,
|
8 | get: function () {
|
9 | return _bulkLoad.default;
|
10 | }
|
11 | });
|
12 | Object.defineProperty(exports, "Connection", {
|
13 | enumerable: true,
|
14 | get: function () {
|
15 | return _connection.default;
|
16 | }
|
17 | });
|
18 | Object.defineProperty(exports, "ConnectionError", {
|
19 | enumerable: true,
|
20 | get: function () {
|
21 | return _errors.ConnectionError;
|
22 | }
|
23 | });
|
24 | Object.defineProperty(exports, "ISOLATION_LEVEL", {
|
25 | enumerable: true,
|
26 | get: function () {
|
27 | return _transaction.ISOLATION_LEVEL;
|
28 | }
|
29 | });
|
30 | Object.defineProperty(exports, "Request", {
|
31 | enumerable: true,
|
32 | get: function () {
|
33 | return _request.default;
|
34 | }
|
35 | });
|
36 | Object.defineProperty(exports, "RequestError", {
|
37 | enumerable: true,
|
38 | get: function () {
|
39 | return _errors.RequestError;
|
40 | }
|
41 | });
|
42 | Object.defineProperty(exports, "TDS_VERSION", {
|
43 | enumerable: true,
|
44 | get: function () {
|
45 | return _tdsVersions.versions;
|
46 | }
|
47 | });
|
48 | Object.defineProperty(exports, "TYPES", {
|
49 | enumerable: true,
|
50 | get: function () {
|
51 | return _dataType.TYPES;
|
52 | }
|
53 | });
|
54 | exports.connect = connect;
|
55 | exports.library = void 0;
|
56 | var _bulkLoad = _interopRequireDefault(require("./bulk-load"));
|
57 | var _connection = _interopRequireDefault(require("./connection"));
|
58 | var _request = _interopRequireDefault(require("./request"));
|
59 | var _library = require("./library");
|
60 | var _errors = require("./errors");
|
61 | var _dataType = require("./data-type");
|
62 | var _transaction = require("./transaction");
|
63 | var _tdsVersions = require("./tds-versions");
|
64 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
65 | const library = exports.library = {
|
66 | name: _library.name
|
67 | };
|
68 | function connect(config, connectListener) {
|
69 | const connection = new _connection.default(config);
|
70 | connection.connect(connectListener);
|
71 | return connection;
|
72 | }
|
73 | //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfYnVsa0xvYWQiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwicmVxdWlyZSIsIl9jb25uZWN0aW9uIiwiX3JlcXVlc3QiLCJfbGlicmFyeSIsIl9lcnJvcnMiLCJfZGF0YVR5cGUiLCJfdHJhbnNhY3Rpb24iLCJfdGRzVmVyc2lvbnMiLCJvYmoiLCJfX2VzTW9kdWxlIiwiZGVmYXVsdCIsImxpYnJhcnkiLCJleHBvcnRzIiwibmFtZSIsImNvbm5lY3QiLCJjb25maWciLCJjb25uZWN0TGlzdGVuZXIiLCJjb25uZWN0aW9uIiwiQ29ubmVjdGlvbiJdLCJzb3VyY2VzIjpbIi4uL3NyYy90ZWRpb3VzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBCdWxrTG9hZCBmcm9tICcuL2J1bGstbG9hZCc7XG5pbXBvcnQgQ29ubmVjdGlvbiwgeyB0eXBlIENvbm5lY3Rpb25BdXRoZW50aWNhdGlvbiwgdHlwZSBDb25uZWN0aW9uQ29uZmlndXJhdGlvbiwgdHlwZSBDb25uZWN0aW9uT3B0aW9ucyB9IGZyb20gJy4vY29ubmVjdGlvbic7XG5pbXBvcnQgUmVxdWVzdCBmcm9tICcuL3JlcXVlc3QnO1xuaW1wb3J0IHsgbmFtZSB9IGZyb20gJy4vbGlicmFyeSc7XG5cbmltcG9ydCB7IENvbm5lY3Rpb25FcnJvciwgUmVxdWVzdEVycm9yIH0gZnJvbSAnLi9lcnJvcnMnO1xuXG5pbXBvcnQgeyBUWVBFUyB9IGZyb20gJy4vZGF0YS10eXBlJztcbmltcG9ydCB7IElTT0xBVElPTl9MRVZFTCB9IGZyb20gJy4vdHJhbnNhY3Rpb24nO1xuaW1wb3J0IHsgdmVyc2lvbnMgYXMgVERTX1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