Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created January 30, 2021 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/90da4a749389e22778ae0ceade50e109 to your computer and use it in GitHub Desktop.
Save parzibyte/90da4a749389e22778ae0ceade50e109 to your computer and use it in GitHub Desktop.
import PouchDB from "pouchdb";
import PouchdbFind from 'pouchdb-find';
PouchDB.plugin(PouchdbFind);
const db = new PouchDB('rutas');
// Para poder ordenar por hora en los horarios
db.createIndex({
index: {fields: ['hora']}
});
export default db;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment