Documentation
¶
Index ¶
Constants ¶
const (
// NoTopicID is a topic ID that won't match anything
NoTopicID = "00000000-0000-0000-0000-000000000000"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QuerySpec ¶
QuerySpec encapsulates a search query.
func Parse ¶
Parse parses the input string and returns a query spec that can be used for constructing complex SQL queries
func (QuerySpec) EscapedPostgresTsQueryInput ¶
func (s QuerySpec) EscapedPostgresTsQueryInput() interface{}
EscapedPostgresTsQueryInput returns a set of wildcard tokens that can be used in a Postgres full text search.
func (QuerySpec) ExplicitTopicIds ¶
func (s QuerySpec) ExplicitTopicIds() []interface{}
ExplicitTopicIds returns the topic ids explicitly specified in the query
func (QuerySpec) TokenInput ¶
TokenInput returns the search string stripped of special search types
func (QuerySpec) WildcardStringArray ¶
func (s QuerySpec) WildcardStringArray() interface{}
WildcardStringArray returns an array of wildcard tokens that can be used in a SQL query. The assumption here is that the individual tokens will be passed through appropriate sanitization. The tokens in the array that is returned are not safe to interpolate directly into a SQL query.