1
0
Fork 0
mirror of synced 2024-07-06 23:10:57 +12:00
budibase/packages/server/db/client.js

12 lines
251 B
JavaScript
Raw Normal View History

// const nano = require("nano")
const PouchDB = require("pouchdb");
2020-04-08 02:12:08 +12:00
2020-04-09 04:00:27 +12:00
const COUCH_DB_URL =
process.env.COUCH_DB_URL || "http://admin:password@localhost:5984"
2020-04-08 02:12:08 +12:00
const CouchDB = PouchDB.defaults({
prefix: COUCH_DB_URL
});
module.exports = CouchDB;