"use strict";
/**
 * 车场镜像knex模块
 * @date 2022-03
 * @author 何华东
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.knexInstance = void 0;
var KnexUtils = require("./KnexUtils");
var Contants_1 = require("./Contants");
var Config_1 = require("./Config");
/**
 * 测试配置
 */
var test_defaults = {
    knex: {
        connection: {
            host: '121.36.160.42',
            port: 3306,
            user: 'nkc_test',
            password: 'nkc_test_ZahJ5een',
            database: 'park_image',
        }
    }
};
/**
 * 正式配置
 */
var prod_Defaults = {
    knex: {
        connection: {
            host: '122.112.252.51',
            port: 33390,
            user: 'nostandar',
            password: 'Keytop@!#321',
            database: 'park_image_new',
        }
    }
};
/**
 * 默认配置
 */
var defaults = Contants_1.default.IS_PROD ? prod_Defaults : test_defaults;
/**
 * 车场镜像配置
 */
var config = Object.assign(defaults, Config_1.getParkImageKnexConfig(), {
    connection: {
        multipleStatements: true
    }
});
/**
 * 车场镜像knex实例
 */
exports.knexInstance = KnexUtils.generateMySqlKnexInstance(config.knex);
//# sourceMappingURL=ParkImageKnex.js.map