1
0
Fork 0
mirror of synced 2024-06-16 09:25:12 +12:00
budibase/packages/worker/src/db/index.js
Martin McKeaveney f7f385937c redis, tidy ups
2021-03-22 16:18:29 +00:00

15 lines
338 B
JavaScript

const PouchDB = require("pouchdb")
const allDbs = require("pouchdb-all-dbs")
const env = require("../environment")
// level option is purely for testing (development)
const COUCH_DB_URL = env.COUCH_DB_URL || "http://localhost:10000/db/"
const Pouch = PouchDB.defaults({
prefix: COUCH_DB_URL,
})
allDbs(Pouch)
module.exports = Pouch