Skip to content

Commit 83729b0

Browse files
authored
Update rx-storage-sqlite.md
1 parent 4f04a87 commit 83729b0

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

docs-src/docs/rx-storage-sqlite.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,11 @@ import {
4242
getSQLiteBasicsNodeNative
4343
} from 'rxdb/plugins/storage-sqlite';
4444

45-
// Create a Storage for it
45+
// Create a Storage for it, here we use the nodejs-native SQLite module
46+
// other SQLite modules can be used with a different sqliteBasics adapter
47+
import { DatabaseSync } from 'node:sqlite';
4648
const storage = getRxStorageSQLiteTrial({
47-
sqliteBasics: getSQLiteBasicsNodeNative(sqlite.DatabaseSync)
49+
sqliteBasics: getSQLiteBasicsNodeNative(DatabaseSync)
4850
});
4951

5052
// Create a Database with the Storage
@@ -63,9 +65,11 @@ import {
6365
getSQLiteBasicsNodeNative
6466
} from 'rxdb-premium/plugins/storage-sqlite';
6567

66-
// Create a Storage for it
68+
// Create a Storage for it, here we use the nodejs-native SQLite module
69+
// other SQLite modules can be used with a different sqliteBasics adapter
70+
import { DatabaseSync } from 'node:sqlite';
6771
const storage = getRxStorageSQLite({
68-
sqliteBasics: getSQLiteBasicsNodeNative(sqlite.DatabaseSync)
72+
sqliteBasics: getSQLiteBasicsNodeNative(DatabaseSync)
6973
});
7074

7175
// Create a Database with the Storage

0 commit comments

Comments
 (0)