Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BulkInserter ¶
BulkInserter — интерфейс для массовой вставки сущностей.
type Comparable ¶
type Comparable uint8
Comparable определяет операцию сравнения.
const ( Eq Comparable = iota // равно Neq // не равно Gt // больше Gte // больше или равно Lt // меньше Lte // меньше или равно LIKE // LIKE (поиск по шаблону) IN // IN (список значений) )
Comparable — тип сравнения для фильтров.
func (Comparable) String ¶
func (i Comparable) String() string
type Filter ¶
type Filter struct {
ColumnName string
Value any
Comparable Comparable
}
Filter определяет условие фильтрации.
type Saver ¶
Saver — интерфейс для сохранения сущности. Объединяет Insert и Update, определяя операцию по наличию ID.
type Sort ¶
type Sort struct {
ColumnName string
Direction SortDirection
}
Sort определяет сортировку по одной колонке.
func NewSort ¶
func NewSort(columnName string, direction SortDirection) *Sort
NewSort создаёт новый Sort.
type SortDirection ¶
type SortDirection uint8
SortDirection представляет направление сортировки.
const ( ASC SortDirection = iota // По возрастанию DESC // По убыванию )
SortDirection — направление сортировки.
func (SortDirection) String ¶
func (i SortDirection) String() string
Click to show internal directories.
Click to hide internal directories.