db

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	HealthCheck() error
	Setup([]interface{}) error

	GetTables() ([]string, error)
	HasTable(string) bool

	// Query operations
	WithContext(ctx context.Context) Service
	Preload(string, ...interface{}) Service
	Joins(string, ...interface{}) Service
	Where(string, ...interface{}) Service
	Search(string, string) Service
	Order(string) Service
	Limit(int) Service
	OffsetPages(page int) Service

	// General operations for manipulating databases
	AddItem(interface{}, ...int64) (*gorm.DB, error)
	UpdateItem(interface{}, interface{}, ...int64) (*gorm.DB, error)
	DeleteItem(interface{}, ...int64) (*gorm.DB, error)
	GetItems(interface{}, interface{}) (int64, error)
	GetAllItems(interface{}, interface{}) (int64, error)
	GetItem(interface{}, interface{}) (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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