mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-28 11:56:00 +00:00
fix
This commit is contained in:
@@ -11,14 +11,8 @@ async function tableWriter({ connection, schemaName, pureName, driver, systemCon
|
|||||||
}
|
}
|
||||||
const dbhan = systemConnection || (await connectUtility(driver, connection, 'write'));
|
const dbhan = systemConnection || (await connectUtility(driver, connection, 'write'));
|
||||||
|
|
||||||
try {
|
logger.info(`Connected.`);
|
||||||
logger.info(`Connected.`);
|
return await driver.writeTable(dbhan, { schemaName, pureName }, options);
|
||||||
return await driver.writeTable(dbhan, { schemaName, pureName }, options);
|
|
||||||
} finally {
|
|
||||||
if (!systemConnection) {
|
|
||||||
await driver.close(dbhan);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = tableWriter;
|
module.exports = tableWriter;
|
||||||
|
|||||||
Reference in New Issue
Block a user