File path does not store or generate anything
LizanLycan opened this issue · comments
Work on ElectronJs. It happens that when configuring the file path and inserting an element nothing happens, I do not know if I should consider anything else.
Already try to create the file ".db" the asiganda route, but without any result. What solution could you try? Thank you
This is the file and scrypt with which I try:
import LinvoDB from 'linvodb3'
import User from './models/schema'
var options = { };
options.filename = "../db.db"; // Path to database - not necessary
options.store = { db: require("level-js") }; // Options passed to LevelUP constructor
var userModel = new LinvoDB('user', User, options)
.
.
.
@Ivshti I think where else I have confusion is that when setting the path for storage, the file is created? The inserted data stays there, because it is persistent? Or, should I configure something else to do it?
I think using level-js as the store options means that under the hood indexedDB ist being used, so probably you can find the data files somewhere in the default appdata location, on windows that is something like %APPDATA%/Local/name-of-your-app/UserData/Default/IndexedDb