Documentation ¶
Overview ¶
Package database represents a connector to the sqlite storage backend to store persistent data from core and plugins
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCoreMetaNotFound = errors.New("core meta entry not found")
ErrCoreMetaNotFound is the error thrown when reading a non-existent core_kv key
Functions ¶
Types ¶
type Connector ¶
type Connector interface { Close() error CopyDatabase(src, target *gorm.DB) error DB() *gorm.DB DeleteCoreMeta(key string) error ReadCoreMeta(key string, value any) error StoreCoreMeta(key string, value any) error ReadEncryptedCoreMeta(key string, value any) error ResetEncryptedCoreMeta() error StoreEncryptedCoreMeta(key string, value any) error DecryptField(string) (string, error) EncryptField(string) (string, error) ValidateEncryption() error }
Connector represents a database connection having some extra convenience methods
func GetTestDatabase ¶
type LogWriter ¶ added in v3.20.0
func NewLogrusLogWriterWithLevel ¶ added in v3.20.0
Click to show internal directories.
Click to hide internal directories.