database

package
v0.0.0-...-5f17d81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatabaseSizeInMB

func GetDatabaseSizeInMB() (int, error)

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func GetDB

func GetDB() *Database

func (*Database) Create

func (d *Database) Create(data interface{}) error

func (*Database) Delete

func (d *Database) Delete(data interface{}, field string, value string) error

func (*Database) DeleteOld

func (d *Database) DeleteOld(data interface{}, retentionMegabytes int) (int, error)

func (*Database) Find

func (d *Database) Find(data interface{}, field string, value interface{}) (bool, error)

func (*Database) GetAll

func (d *Database) GetAll(data interface{}) error

func (*Database) Lock

func (d *Database) Lock()

func (*Database) Migrate

func (d *Database) Migrate(data interface{}) error

func (*Database) Unlock

func (d *Database) Unlock()

func (*Database) Update

func (d *Database) Update(data interface{}, searchField string, searchValue string, modifyField string, newValue interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL