mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 04:56:00 +00:00
ndjson direct support
This commit is contained in:
@@ -3,7 +3,8 @@ import { FileFormatDefinition, QuickExportDefinition } from 'dbgate-types';
|
||||
const jsonlFormat = {
|
||||
storageType: 'jsonl',
|
||||
extension: 'jsonl',
|
||||
name: 'JSON lines',
|
||||
extensions: ['jsonl', 'ndjson'],
|
||||
name: 'JSON lines/NDJSON',
|
||||
readerFunc: 'jsonLinesReader',
|
||||
writerFunc: 'jsonLinesWriter',
|
||||
};
|
||||
@@ -23,7 +24,7 @@ const sqlFormat = {
|
||||
};
|
||||
|
||||
const jsonlQuickExport = {
|
||||
label: 'JSON lines',
|
||||
label: 'JSON lines/NDJSON',
|
||||
extension: 'jsonl',
|
||||
createWriter: fileName => ({
|
||||
functionName: 'jsonLinesWriter',
|
||||
|
||||
Reference in New Issue
Block a user