2019-04-18 21:32:38 +00:00
|
|
|
// Copyright IBM Corp. 2014,2019. All Rights Reserved.
|
2016-05-06 04:50:59 +00:00
|
|
|
// Node module: loopback-connector
|
|
|
|
// This file is licensed under the MIT License.
|
|
|
|
// License text available at https://opensource.org/licenses/MIT
|
|
|
|
|
2017-03-06 23:40:47 +00:00
|
|
|
'use strict';
|
2019-08-02 13:50:51 +00:00
|
|
|
const SG = require('strong-globalize');
|
2016-07-25 16:45:38 +00:00
|
|
|
SG.SetRootDir(__dirname);
|
|
|
|
|
2014-05-23 08:50:23 +00:00
|
|
|
exports.Connector = require('./lib/connector');
|
2015-05-13 17:14:44 +00:00
|
|
|
// Set up SqlConnector as an alias to SQLConnector
|
|
|
|
exports.SQLConnector = exports.SqlConnector = require('./lib/sql');
|
|
|
|
exports.ParameterizedSQL = exports.SQLConnector.ParameterizedSQL;
|
2015-05-15 17:27:08 +00:00
|
|
|
exports.Transaction = require('./lib/transaction');
|
|
|
|
|
2016-10-19 10:55:35 +00:00
|
|
|
exports.createPromiseCallback = require('./lib/utils').createPromiseCallback;
|
|
|
|
|
|
|
|
// KeyValue helpers
|
|
|
|
exports.ModelKeyComposer = require('./lib/model-key-composer');
|
2016-10-19 11:14:55 +00:00
|
|
|
exports.BinaryPacker = require('./lib/binary-packer');
|
2016-11-10 03:26:13 +00:00
|
|
|
exports.JSONStringPacker = require('./lib/json-string-packer');
|