Documentation ¶
Index ¶
Constants ¶
View Source
const ( Eq token = "=" NotEq token = "!=" Gt token = ">" Gte token = ">=" Lt token = "<" Lte token = "<=" )
View Source
const ( Epoch field = "epoch" Smesher field = "pubkey" Coinbase field = "coinbase" Id field = "id" Layer field = "layer" )
View Source
const ( Offset modifier = "offset" Limit modifier = "limit" OrderBy modifier = "order by" )
Variables ¶
This section is empty.
Functions ¶
func BindingsFrom ¶
func BindingsFrom(operations Operations) sql.Encoder
func FilterFrom ¶
func FilterFrom(operations Operations) string
Types ¶
type Modifier ¶
type Modifier struct { Key modifier // Value will be type casted to one the expected types. // Modifier will panic if it doesn't match any of expected. Value any }
type Op ¶
type Op struct { Field field Token token // Value will be type casted to one the expected types. // Operation will panic if it doesn't match any of expected. Value any }
type Operations ¶
Click to show internal directories.
Click to hide internal directories.