数据库添加索引;update
This commit is contained in:
@@ -8,7 +8,7 @@ let pool = null;
|
||||
function create({ database, connectionLimit = 10 }) {
|
||||
let config = {
|
||||
connectionLimit: connectionLimit, //连接数量,默认是10
|
||||
...globalConfig.mysql,
|
||||
...globalConfig[global.dbConfig || 'mysql'],
|
||||
database: database,
|
||||
};
|
||||
// console.log(config);
|
||||
|
@@ -12,7 +12,7 @@ function create({ database }) {
|
||||
|
||||
async function query(sql, params) {
|
||||
let config = {
|
||||
...globalConfig.mysql,
|
||||
...globalConfig[global.dbConfig || 'mysql'],
|
||||
database: databaseName,
|
||||
};
|
||||
// console.log(config);
|
||||
|
Reference in New Issue
Block a user