mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 03:16:01 +00:00
generate shell script
This commit is contained in:
@@ -23,3 +23,24 @@ async function run() {
|
||||
}
|
||||
|
||||
dbgateApi.runScript(run);
|
||||
|
||||
// dbgateApi.runBatch([
|
||||
// {
|
||||
// type: 'copyStream',
|
||||
// source: {
|
||||
// type: 'queryReader',
|
||||
// connection: {
|
||||
// server: 'localhost',
|
||||
// engine: 'mysql',
|
||||
// user: 'root',
|
||||
// password: 'test',
|
||||
// port: '3307',
|
||||
// database: 'Chinook',
|
||||
// },
|
||||
// sql: 'SELECT * FROM Genre',
|
||||
// },
|
||||
// target: {
|
||||
// type: 'csvWriter',
|
||||
// },
|
||||
// },
|
||||
// ]);
|
||||
|
||||
Reference in New Issue
Block a user