fixed import for clickhouse

This commit is contained in:
Jan Prochazka
2024-09-13 15:47:12 +02:00
parent 89c9d5e792
commit 334440f691
6 changed files with 20 additions and 7 deletions

View File

@@ -6,11 +6,7 @@ const _ = require('lodash');
* @param {import('dbgate-types').EngineDriver} driver
*/
function createOracleBulkInsertStream(driver, stream, pool, name, options) {
const writable = createBulkInsertStreamBase(driver, stream, pool, name, {
...options,
// this is really not used, send method below is used instead
commitAfterInsert: true,
});
const writable = createBulkInsertStreamBase(driver, stream, pool, name, options);
writable.send = async () => {
await pool.insert({