mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 00:16:00 +00:00
import SQL dump
This commit is contained in:
@@ -13,7 +13,11 @@ class ImportStream extends stream.Transform {
|
||||
this.driver = driver;
|
||||
}
|
||||
async _transform(chunk, encoding, cb) {
|
||||
await this.driver.script(this.pool, chunk);
|
||||
try {
|
||||
await this.driver.script(this.pool, chunk);
|
||||
} catch (err) {
|
||||
this.emit('error', err.message);
|
||||
}
|
||||
cb();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user