Skip to content

Commit 7b8750f

Browse files
author
Tyler Kellen
committed
correct examples
1 parent 6628b82 commit 7b8750f

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ Example:
1414
const SqliteToJson = require('sqlite-to-json');
1515
const sqlite3 = require('sqlite3');
1616
const exporter = new SqliteToJson({
17-
client: sqlite3.Database({
18-
filename: 'mydb.sqlite3'
19-
})
17+
client: new sqlite3.Database('./mydb.sqlite3')
2018
});
2119
```
2220

@@ -37,9 +35,7 @@ Example:
3735
const SqliteToJson = require('sqlite-to-json');
3836
const sqlite3 = require('sqlite3');
3937
const exporter = new SqliteToJson({
40-
client: sqlite3.Database({
41-
filename: 'mydb.sqlite3'
42-
})
38+
client: new sqlite3.Database('./mydb.sqlite3')
4339
});
4440
exporter.tables(function (err, tables) {
4541
// all your table names here
@@ -55,9 +51,7 @@ Example:
5551
const SqliteToJson = require('sqlite-to-json');
5652
const sqlite3 = require('sqlite3');
5753
const exporter = new SqliteToJson({
58-
client: sqlite3.Database({
59-
filename: 'mydb.sqlite3'
60-
})
54+
client: new sqlite3.Database('./mydb.sqlite3')
6155
});
6256
exporter.save('table_name', './data/table_name.json', function (err) {
6357
// no error and you're good.

0 commit comments

Comments
 (0)