nikolvs / nedb-repl Goto Github PK
View Code? Open in Web Editor NEWThe command-line tool for NeDB
License: MIT License
The command-line tool for NeDB
License: MIT License
Update dev dependencies to the latest version according to david-dm.
Don't forget to update yarn.lock
as well.
Is there a way to refresh the data?
I have a process writing to my foo.db
file and i run queries in nedb-repl
it seems to not pick up new data.
For example running db.count().exec()
repeated always shows same number but I know there are more documents being added.
No need to put .exec()
in the final of each query.
When doing a fresh install with npm i -g nedb-repl
I would run into the following error when opening the cli:
nedb>
NeDB v1.8.0 - REPL v1.2.3
Enter .help for usage hints.
Connected to in-memory only datastore.
Use .open FILENAME to reopen on a persistent datastore.
nedb> TypeError: Object.defineProperty called on non-object
at Function.defineProperty (<anonymous>)
at Object.exports.setDatastore (/usr/local/lib/node_modules/nedb-repl/lib/repl/index.js:40:10)
at async module.exports (/usr/local/lib/node_modules/nedb-repl/lib/repl/index.js:76:3)
The error caused all further commands to fail.
It seems to be a dependency problem caused by the vm2 package
I managed to fix it by changing "vm2": "^3.1.0"
to "vm2": "3.1.0"
in package.json
and running npm i
in /usr/local/lib/node_modules/nedb-repl
Simply install this project with yarn, test and commit yarn.lock
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.