PocketBase defines a PocketBase app launcher.

It implements [CoreApp] via embedding and all of the app interface methods could be accessed directly through the instance (eg. PocketBase.DataDir()).

Hierarchy

Methods

Properties

References

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 expandRecord expandRecords findAllAuthOriginsByCollection findAllAuthOriginsByRecord findAllCollections findAllExternalAuthsByCollection findAllExternalAuthsByRecord findAllMFAsByCollection findAllMFAsByRecord findAllOTPsByCollection findAllOTPsByRecord findAllRecords findAuthOriginById findAuthOriginByRecordAndFingerprint findAuthRecordByEmail findAuthRecordByToken findCachedCollectionByNameOrId findCachedCollectionReferences 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 store subscriptionsBroker syncRecordTableSchema tableColumns tableIndexes tableInfo truncateCollection unsafeWithoutHooks vacuum validate validateWithContext

Methods

  • Execute initializes the application (if not already) and executes the pb.RootCmd with graceful shutdown support.

    This method differs from pb.Start() by not registering the default system commands!

    Returns void

  • Start starts the application, aka. registers the default system commands (serve, superuser, version) and executes pb.RootCmd.

    Returns void

Properties

rootCmd?: cobra.Command

RootCmd is the main console command

References

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

Generated using TypeDoc