budibase/packages/backend-core
mike12345567 192fb1307e Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them. 2022-04-19 19:42:52 +01:00
..
scripts Changing directory. 2022-01-10 19:30:35 +00:00
src Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them. 2022-04-19 19:42:52 +01:00
.gitignore Changing directory. 2022-01-10 19:30:35 +00:00
LICENSE Changing directory. 2022-01-10 19:30:35 +00:00
README.md Switching out @budibase/auth to @budibase/backend-core. 2022-01-10 19:33:00 +00:00
accounts.js Changing directory. 2022-01-10 19:30:35 +00:00
auth.js Refactoring core library usage in monorepo, make it a bit cleaner/easier to search/more standardised. 2022-01-12 11:32:14 +00:00
cache.js Changing directory. 2022-01-10 19:30:35 +00:00
constants.js Changing directory. 2022-01-10 19:30:35 +00:00
context.js Refactoring backend-core tenancy to context, splitting out tenancy functionality to its own area. 2022-01-31 17:53:19 +00:00
db.js Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-04-19 16:45:27 +01:00
deprovision.js Refactoring backend-core tenancy to context, splitting out tenancy functionality to its own area. 2022-01-31 17:53:19 +00:00
encryption.js Adding basic encrypt/decrypt pathway. 2022-02-14 18:32:09 +00:00
middleware.js Removing use of direct package access. 2022-01-12 12:54:25 +00:00
migrations.js Merge branch 'develop' of github.com:Budibase/budibase into fix/sync-apps-reset-rows-quotas 2022-01-12 13:20:22 +00:00
objectStore.js Refactoring core library usage in monorepo, make it a bit cleaner/easier to search/more standardised. 2022-01-12 11:32:14 +00:00
package.json Remove remaining direct usage of CouchDB. Add common pouch config to backend-core 2022-04-19 16:45:27 +01:00
permissions.js Changing directory. 2022-01-10 19:30:35 +00:00
redis.js Changing directory. 2022-01-10 19:30:35 +00:00
roles.js Changing directory. 2022-01-10 19:30:35 +00:00
sessions.js Changing directory. 2022-01-10 19:30:35 +00:00
tenancy.js Changing directory. 2022-01-10 19:30:35 +00:00
utils.js Refactoring core library usage in monorepo, make it a bit cleaner/easier to search/more standardised. 2022-01-12 11:32:14 +00:00
yarn.lock Initial version of memory leak protection, making sure that PouchDB databases are closed correctly after use, using a combination of closures wrapping DB gets (this replaces the getDB, leaving only a dangerousGetDB function which can be used in very very specific scenarios) and then closing the DB as part of CLS hooked functions finishing. Also moving the GlobalDB init to the tenancy middleware as this is used everywhere in the worker/app services - means that not all getGlobalDB calls require an async closure around them. 2022-04-19 19:42:52 +01:00

README.md

Budibase Core backend library

This library contains core functionality, like auth and security features which are shared between backend services.

Note about top level JS files

For the purposes of being able to do say require("@budibase/backend-core/permissions") we need to specify the exports at the top-level of the module.

For these files they should be limited to a single require of the file that should be exported and then a single module.exports = ... to export the file in commonJS.