Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyWhere = "{{.where}}" KeyPageSize = "page_size" KeyPage = "page" )
Variables ¶
View Source
var (
PageSize = 100 // default page size
)
Functions ¶
Types ¶
type PagingResult ¶ added in v0.10.18
type RawQuery ¶
type RawQuery struct { Connection string // which connection should be used for query. Sql string SumRef string // reference to another RawQuery define, not used yet. SumEnabled bool Preset map[string]any Params []string Where map[string]string // key: where condition, value: param key, e.g. "id = ?", "id" Orderby string Groupby string }
func (*RawQuery) PagingResult ¶ added in v0.10.18
type RawQuerySerice ¶
type RawQuerySerice struct { Source string EnabledAuth bool Base string Items []SerivceItem // contains filtered or unexported fields }
type RawQueryWhere ¶ added in v0.10.14
type RawQueryWhere struct { Cond string Param string Empty string // optional settings, where condition for params is empty }
it's not enabled yet.
type SerivceItem ¶
Click to show internal directories.
Click to hide internal directories.