Giter VIP home page Giter VIP logo

nedb-core's People

Contributors

amilajack avatar apsaarin avatar b1rdex avatar bengl avatar dwmiller avatar eugene88888 avatar felicienfrancois avatar fictorial avatar howlingguineapig avatar jamesmgreene avatar jamessharp avatar jasonrhodes avatar jthrilly avatar kba avatar kenspirit avatar kumailht avatar lfthomaz avatar louischatriot avatar lukasbestle avatar miroshko avatar mitsos1os avatar mmathys avatar paulbjensen avatar phihag avatar pi0 avatar pleochism avatar rhalff avatar sbruchmann avatar szwacz avatar timshadel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nedb-core's Issues

Permanently deleting an entry from persistant storage

I am using nedb in one of my projects. It seems to be matching my needs so far. I see one issue though, when trying to delete a record, instead of deleting the entire record, it does a partial deletion. i.e. it deletes the record and adds $$deleted: true.

{"$$deleted":true,"_id":"5ff56dece70e4d331ca9d724"}

Can the record be deleted permanently?

This is my code:

  db.remove({ name: doc.name }, {}, function (err, numRemoved) {
        // numRemoved = 1
      });

Error: `.storage` not found

Hi,
in a vue/vuex project, the build fails:

 ERROR  Failed to compile with 1 errors
This relative module was not found:
* ./storage in ./node_modules/nedb-core/lib/persistence.js

My code is as simple as:

var Datastore = require('nedb-core')

Any suggestion?
Thank you

Creating storage path fails due to bad mkdirp option.

The mkdirp node module has breaking changes from version 0.5 to 1.0 and the package.json for nedb-core is requesting the "latest" version of mkdirp. This breaks nedb-core which relies on mkdirp version 0.5.

There are two options to fix the issue...

  1. Change the package.json dependency to mkdirp version 0.5.

  2. Update the nedb-core persistence library to use the new mkdirp async methods.

I can put together a pull request but I'm curious which option would be more acceptable. Option 1 would be easy and low risk. Option 2 would be more forward looking but would require code changes that would come with risks.

Thought?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.