Documentation
¶
Index ¶
Constants ¶
View Source
const ( JSONTable = "json" JSONOrder = "created" SenMLTable = "senml" SenMLOrder = "time" // EqualKey represents the equal comparison operator key. EqualKey = "eq" // LowerThanKey represents the lower-than comparison operator key. LowerThanKey = "lt" // LowerThanEqualKey represents the lower-than-or-equal comparison operator key. LowerThanEqualKey = "le" // GreaterThanKey represents the greater-than-or-equal comparison operator key. GreaterThanKey = "gt" // GreaterThanEqualKey represents the greater-than-or-equal comparison operator key. GreaterThanEqualKey = "ge" )
Variables ¶
This section is empty.
Functions ¶
func BaseConditions ¶
func BaseConditions(pm domain.MessagesPageMetadata, timeColumn string) []string
func BaseQueryParams ¶
func BaseQueryParams(pm domain.MessagesPageMetadata) map[string]any
func ComparatorSymbol ¶
ComparatorSymbol converts a comparison operator key into its SQL symbol.
func SenMLConditions ¶
func SenMLConditions(pm domain.SenMLPageMetadata) []string
senmlConditions returns the SQL predicates common to every senml read, including the aggregated ones.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.