mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-21 15:16:01 +00:00
28 lines
625 B
TypeScript
28 lines
625 B
TypeScript
import fileFormatBase from './fileFormatBase';
|
|
import { FileFormatDefinition } from './types';
|
|
|
|
const csvFormat: FileFormatDefinition = {
|
|
...fileFormatBase,
|
|
storageType: 'csv',
|
|
extension: 'csv',
|
|
name: 'CSV',
|
|
readerFunc: 'csvReader',
|
|
writerFunc: 'csvWriter',
|
|
args: [
|
|
{
|
|
type: 'select',
|
|
name: 'delimiter',
|
|
label: 'Delimiter',
|
|
options: [
|
|
{ name: 'Comma (,)', value: ',' },
|
|
{ name: 'Semicolon (;)', value: ';' },
|
|
{ name: 'Tab', value: '\t' },
|
|
{ name: 'Pipe (|)', value: '|' },
|
|
],
|
|
apiName: 'delimiter',
|
|
},
|
|
],
|
|
};
|
|
|
|
export default csvFormat;
|