$app is the current running PocketBase instance that is globally available in each .pb.js file.

Note that this variable is available only in pb_hooks context.

Index

Functions

auxDB auxDelete auxDeleteWithContext auxHasTable auxModelQuery auxNonconcurrentDB auxRunInTransaction auxSave auxSaveNoValidate auxSaveNoValidateWithContext auxSaveWithContext auxVacuum bootstrap canAccessRecord collectionQuery countRecords createBackup createViewFields dataDir db delete deleteAllAuthOriginsByRecord deleteAllMFAsByRecord deleteAllOTPsByRecord deleteExpiredMFAs deleteExpiredOTPs deleteOldLogs deleteTable deleteView deleteWithContext encryptionEnv execute expandRecord expandRecords findAllAuthOriginsByCollection findAllAuthOriginsByRecord findAllCollections findAllExternalAuthsByCollection findAllExternalAuthsByRecord findAllMFAsByCollection findAllMFAsByRecord findAllOTPsByCollection findAllOTPsByRecord findAllRecords findAuthOriginById findAuthOriginByRecordAndFingerprint findAuthRecordByEmail findAuthRecordByToken findCachedCollectionByNameOrId findCollectionByNameOrId findCollectionReferences findFirstExternalAuthByExpr findFirstRecordByData findFirstRecordByFilter findLogById findMFAById findOTPById findRecordById findRecordByViewFile findRecordsByFilter findRecordsByIds hasTable importCollections importCollectionsByMarshaledJSON isBootstrapped isCollectionNameUnique isDev isTransactional logQuery logger logsStats modelQuery newBackupsFilesystem newFilesystem newMailClient nonconcurrentDB recordQuery reloadCachedCollections reloadSettings resetBootstrapState restart restoreBackup runAllMigrations runAppMigrations runInTransaction runSystemMigrations save saveNoValidate saveNoValidateWithContext saveView saveWithContext settings start store subscriptionsBroker syncRecordTableSchema tableColumns tableIndexes tableInfo truncateCollection unsafeWithoutHooks vacuum validate validateWithContext

Variables

Generated using TypeDoc