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