database

package
v1.2.18 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func Connect

func Connect() *DB

func NamedConnect added in v1.2.0

func NamedConnect(name string) *DB

func (*DB) Backup

func (db *DB) Backup(loc string)

func (*DB) Create

func (db *DB) Create(data any) error

func (*DB) Delete

func (db *DB) Delete(data any) error

func (*DB) Disconnect

func (db *DB) Disconnect()

func (*DB) Drop

func (db *DB) Drop(data any) error

func (*DB) GetAll

func (db *DB) GetAll(to any, options ...func(*index.Options)) error

func (*DB) Retrieve

func (db *DB) Retrieve(fieldName string, value, to any) error

func (*DB) Update

func (db *DB) Update(data any) error

Jump to

Keyboard shortcuts

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