File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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' ;
4648const 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' ;
6771const storage = getRxStorageSQLite ({
68- sqliteBasics: getSQLiteBasicsNodeNative (sqlite . DatabaseSync )
72+ sqliteBasics: getSQLiteBasicsNodeNative (DatabaseSync )
6973});
7074
7175// Create a Database with the Storage
You can’t perform that action at this time.
0 commit comments