Documentation
¶
Index ¶
Constants ¶
View Source
const ( Offset = "offset" Fulltext = "fulltext" Order = "order" Limit = "limit" )
View Source
const ( Asc = "asc" Desc = "desc" )
Variables ¶
View Source
var (
DefaultLimit = 20
)
View Source
var (
ErrorSliceValue = errors.New("value must be a slice")
)
Functions ¶
This section is empty.
Types ¶
type Dyna ¶
type Dyna interface { DB(db *esquel.DB, query Query) Dyna Data(data []map[string]any) Dyna GetAllFunc(fn func(param Param, t any) error) Dyna GetOneFunc(fn func(name string, v any, t any) error) Dyna GetManyFunc(fn func(name string, v any, t any) error) Dyna GetAll(param Param, t any) error GetOne(name string, v any, t any) error GetMany(name string, v any, t any) error MustGetAll(param Param, t any) MustGetOne(name string, v any, t any) MustGetMany(name string, v any, t any) }
type OrderParam ¶
type Param ¶
type Query ¶
func CreateSelect ¶
func CreateSelect(table, textColumn string, props SelectProps) Query
type SelectProps ¶ added in v0.1.1
type SelectProps struct {
ValueColumn string
}
Click to show internal directories.
Click to hide internal directories.