How to use the minimongo.LocalStorageDb function in minimongo

To help you get started, we’ve selected a few minimongo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mathew-kurian / Scribe.js / asr / viewer / libs / MongoDB.js View on Github external
new minimongo.MemoryDb({namespace: this.namespace}, localDb => {
        const hybridDb = new minimongo.HybridDb(localDb, this.remoteDb);

        let type;
        if (localDb instanceof minimongo.IndexedDb) {
          type = 'IndexedDb';
        } else if (localDb instanceof minimongo.LocalStorageDb) {
          type = 'LocalStorageDb';
        } else if (localDb instanceof minimongo.MemoryDb) {
          type = 'MemoryDb';
        } else if (localDb instanceof minimongo.WebSQLDb) {
          type = 'WebSQLDb';
        } else {
          throw new Error('Can\'t identify db');

        this.hybridDb = hybridDb;

        resolve(hybridDb, type)
      }, reject);


Client-side mongo database with server sync over http

Latest version published 2 months ago

Package Health Score

69 / 100
Full package analysis