Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
436 B

const PouchDB = require("pouchdb")
const allDbs = require("pouchdb-all-dbs")
const os = require("os");
const path = require("path");
const BUDIBASE_DIR = path.join(os.homedir(), ".budibase");
const COUCH_DB_URL = process.env.COUCH_DB_URL || `leveldb://${BUDIBASE_DIR}/`;
const DATABASE_TYPE = process.env.DATABASE_TYPE || "couch";
const Pouch = PouchDB.defaults({
prefix: COUCH_DB_URL,
});
allDbs(Pouch);
module.exports = Pouch;