mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-02 12:33:58 +00:00
fixed deps
This commit is contained in:
@@ -91,36 +91,11 @@ Imports data into table. Options are optional, default values are false.
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
### dbgateApi.csvReader
|
|
||||||
Reads CSV file
|
|
||||||
```js
|
|
||||||
const reader = await dbgateApi.csvReader({
|
|
||||||
fileName: '/home/root/test.csv',
|
|
||||||
encoding: 'utf-8',
|
|
||||||
header: true,
|
|
||||||
delimiter: ',',
|
|
||||||
quoted: false,
|
|
||||||
limitRows: null
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### dbgateApi.csvWriter
|
|
||||||
Writes CSV file
|
|
||||||
```js
|
|
||||||
const reader = await dbgateApi.csvWriter({
|
|
||||||
fileName: '/home/root/test.csv',
|
|
||||||
encoding: 'utf-8',
|
|
||||||
header: true,
|
|
||||||
delimiter: ',',
|
|
||||||
quoted: false
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
### dbgateApi.jsonLinesReader
|
### dbgateApi.jsonLinesReader
|
||||||
Reads JSON lines data file. On first line could be structure. Every line contains one row as JSON serialized object.
|
Reads JSON lines data file. On first line could be structure. Every line contains one row as JSON serialized object.
|
||||||
```js
|
```js
|
||||||
const reader = await dbgateApi.jsonLinesReader({
|
const reader = await dbgateApi.jsonLinesReader({
|
||||||
fileName: '/home/root/test.jsonl',
|
fileName: 'test.jsonl',
|
||||||
encoding: 'utf-8',
|
encoding: 'utf-8',
|
||||||
header: true,
|
header: true,
|
||||||
limitRows: null
|
limitRows: null
|
||||||
@@ -131,19 +106,8 @@ Reads JSON lines data file. On first line could be structure. Every line contain
|
|||||||
Writes JSON lines data file. On first line could be structure. Every line contains one row as JSON serialized object.
|
Writes JSON lines data file. On first line could be structure. Every line contains one row as JSON serialized object.
|
||||||
```js
|
```js
|
||||||
const reader = await dbgateApi.jsonLinesWriter({
|
const reader = await dbgateApi.jsonLinesWriter({
|
||||||
fileName: '/home/root/test.jsonl',
|
fileName: 'test.jsonl',
|
||||||
encoding: 'utf-8',
|
encoding: 'utf-8',
|
||||||
header: true
|
header: true
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
### dbgateApi.excelSheetReader
|
|
||||||
Reads tabular data from one sheet in MS Excel file.
|
|
||||||
```js
|
|
||||||
const reader = await dbgateApi.excelSheetReader({
|
|
||||||
fileName: '/home/root/test.xlsx',
|
|
||||||
sheetName: 'Album',
|
|
||||||
limitRows: null
|
|
||||||
});
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@
|
|||||||
"lodash": "^4.17.15",
|
"lodash": "^4.17.15",
|
||||||
"ncp": "^2.0.0",
|
"ncp": "^2.0.0",
|
||||||
"nedb-promises": "^4.0.1",
|
"nedb-promises": "^4.0.1",
|
||||||
|
"uuid": "^3.4.0",
|
||||||
"tar": "^6.0.5"
|
"tar": "^6.0.5"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user