Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractVariableNames ¶
ExtractVariableNames returns all unique variable names found in the SQL.
func ProcessOptionalClauses ¶
Types ¶
type Variable ¶
type Variable struct {
Name string `json:"name"`
Type VariableType `json:"type"`
Value interface{} `json:"value"`
}
Variable represents a template variable with its value.
type VariableType ¶
type VariableType string
VariableType defines the type of a template variable.
const ( // TypeString represents a string variable that will be quoted. TypeString VariableType = "string" // TypeText is an alias for string (used by frontend). TypeText VariableType = "text" // TypeNumber represents a numeric variable inserted as-is. TypeNumber VariableType = "number" // TypeDate represents a date variable formatted as ClickHouse datetime. TypeDate VariableType = "date" )
Click to show internal directories.
Click to hide internal directories.