Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File path does not store or generate anything #68

Open
LizanLycan opened this issue Jan 31, 2017 · 2 comments
Open

File path does not store or generate anything #68

LizanLycan opened this issue Jan 31, 2017 · 2 comments

Comments

@LizanLycan
Copy link

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)
.
.
.

@LizanLycan
Copy link
Author

LizanLycan commented Feb 1, 2017

@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?

@ollex
Copy link

ollex commented Apr 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants