mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 06:06:01 +00:00
export CSV from mysql test
This commit is contained in:
11
packages/api/src/shell/runScript.js
Normal file
11
packages/api/src/shell/runScript.js
Normal file
@@ -0,0 +1,11 @@
|
||||
async function runScript(func) {
|
||||
try {
|
||||
await func();
|
||||
process.exit(0);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = runScript;
|
||||
Reference in New Issue
Block a user