db

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBAdapter

type DBAdapter interface {
	Init() error
	Migrate(entities []any) error

	Create(entity any) error
	Update(entity any) error
	Delete(id string, entity any) error

	FindAll(entity any, filters map[string]any, pagination Pagination, sort []Sort) (any, error)
	FindByID(id string, entity any) (any, error)
}

type Pagination

type Pagination struct {
	Limit  int
	Offset int
}

type Sort

type Sort struct {
	Field     string
	Direction string // "asc" or "desc"
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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