Documentation ¶
Overview ¶
Package sql modifies SQL queries.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterString ¶
FilterString returns an SQL WHERE statement that pre-filters rows for this set of rules. Only supports "equal strings" filters.
Rules for:
#foo [type='bar'][level=2] {} #foo [type='baz'][level=2] {}
will return
"(type IN ('bar', 'baz'))"
Rules for:
#foo [level=2] {} #foo [type='bar'][level=2] {}
will return an empty string, since any 'type' can match.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.