25 lines
791 B
JavaScript
25 lines
791 B
JavaScript
const db = require("./db")
|
|
|
|
module.exports = {
|
|
init(opts = {}) {
|
|
db.init(opts.db)
|
|
},
|
|
// 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"),
|
|
migrations: require("../migrations"),
|
|
errors: require("./errors"),
|
|
env: require("./environment"),
|
|
accounts: require("./cloud/accounts"),
|
|
tenancy: require("./tenancy"),
|
|
context: require("../context"),
|
|
featureFlags: require("./featureFlags"),
|
|
}
|