mirror of https://github.com/Budibase/budibase.git
3 changed files with 12 additions and 8 deletions
@ -1,14 +1,14 @@ |
|||
const PouchDB = require("pouchdb") |
|||
require("pouchdb-all-dbs")(PouchDB) |
|||
const allDbs = require("pouchdb-all-dbs") |
|||
|
|||
module.exports = () => { |
|||
const COUCH_DB_URL = |
|||
process.env.COUCH_DB_URL || "http://admin:password@localhost:5984" |
|||
const DATABASE_TYPE = process.env.DATABASE_TYPE || "couch" |
|||
|
|||
PouchDB.defaults({ |
|||
const pouch = PouchDB.defaults({ |
|||
prefix: COUCH_DB_URL, |
|||
}) |
|||
|
|||
return PouchDB |
|||
allDbs(pouch) |
|||
return pouch |
|||
} |
|||
|
|||
Loading…
Reference in new issue