budibase/packages/auth/src/db/index.js

14 lines
180 B
JavaScript
Raw Normal View History

let Pouch
2021-05-04 12:32:22 +02:00
module.exports.setDB = pouch => {
Pouch = pouch
}
2021-04-15 17:57:01 +02:00
2021-05-04 12:32:22 +02:00
module.exports.getDB = dbName => {
return new Pouch(dbName)
}
2021-05-14 17:31:07 +02:00
module.exports.getCouch = () => {
return Pouch
}