database

package
v0.0.0-...-221c3f5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: AGPL-3.0 Imports: 10 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, error)

func (*Database) Close

func (d *Database) Close() error

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) Migrate

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

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