2021-08-05 10:59:08 +02:00
|
|
|
const { setDB } = require("./db")
|
2021-04-07 12:33:16 +02:00
|
|
|
|
2021-04-08 12:20:37 +02:00
|
|
|
module.exports = {
|
2021-04-15 17:45:21 +02:00
|
|
|
init(pouch) {
|
2021-04-20 18:17:44 +02:00
|
|
|
setDB(pouch)
|
2021-04-15 17:45:21 +02:00
|
|
|
},
|
2022-01-12 12:32:14 +01:00
|
|
|
// some default exports from the library, however these ideally shouldn't
|
|
|
|
// be used, instead the syntax require("@budibase/backend-core/db") should be used
|
|
|
|
StaticDatabases: require("./db/utils").StaticDatabases,
|
|
|
|
db: require("../db"),
|
|
|
|
redis: require("../redis"),
|
|
|
|
objectStore: require("../objectStore"),
|
|
|
|
utils: require("../utils"),
|
|
|
|
cache: require("../cache"),
|
|
|
|
auth: require("../auth"),
|
|
|
|
constants: require("../constants"),
|
2022-01-12 14:20:22 +01:00
|
|
|
migrations: require("../migrations"),
|
2022-03-03 14:37:04 +01:00
|
|
|
licensing: require("./licensing"),
|
2022-03-04 14:42:50 +01:00
|
|
|
errors: require("./errors"),
|
2021-04-08 12:20:37 +02:00
|
|
|
}
|