How to use the rxdb.PouchDB function in rxdb

To help you get started, we’ve selected a few rxdb 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 bkniffler / workerdb / packages / workerdb / src / worker.ts View on Github external
db.collection(col).then(c => {
          customMethods[c.name] = col.methods;
          if (col.sync) {
            if (col.sync.remote) {
              col.sync.remote = new PouchDB(
                col.sync.remote,
                data.authorization
                  ? {
                      headers: { Authorization: data.authorization }
                    }
                  : ({} as any)
              );
            }
            replicationStates[c.name] = c.sync(col.sync);
          }
          return c;
        })
      )
github bkniffler / workerdb / packages / workerdb / src / rx / server.ts View on Github external
db.collection(col).then((c: any) => {
          this.customMethods[c.name] = col.methods;
          if (col.sync) {
            if (col.sync.remote) {
              col.sync.remote = new PouchDB(
                col.sync.remote,
                data.authorization
                  ? {
                      headers: { Authorization: data.authorization }
                    }
                  : ({} as any)
              );
            }
            this.replicationStates[c.name] = c.sync(col.sync);
          }
          return c;
        })
      )

rxdb

A local-first realtime NoSQL Database for JavaScript applications - https://rxdb.info/

Apache-2.0
Latest version published 19 days ago

Package Health Score

80 / 100
Full package analysis