mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
json lines reader, writer
This commit is contained in:
@@ -31,9 +31,15 @@ async function run() {
|
||||
// header: false,
|
||||
});
|
||||
|
||||
const jsonWriter = await dbgateApi.jsonLinesWriter({
|
||||
fileName: 'test.jsonl',
|
||||
header: false,
|
||||
});
|
||||
|
||||
const consoleWriter = await dbgateApi.consoleObjectWriter();
|
||||
|
||||
await dbgateApi.copyStream(queryReader, csvWriter);
|
||||
// await dbgateApi.copyStream(queryReader, csvWriter);
|
||||
await dbgateApi.copyStream(queryReader, jsonWriter);
|
||||
// await dbgateApi.copyStream(queryReader, consoleWriter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user