MCPcopy
hub / github.com/kashav/fsql / NewQuery

Function NewQuery

query/query.go:21–32  ·  view source on GitHub ↗

NewQuery returns a pointer to a Query.

()

Source from the content-addressed store, hash-verified

19
20// NewQuery returns a pointer to a Query.
21func NewQuery() *Query {
22 return &Query{
23 Attributes: make([]string, 0),
24 Modifiers: make(map[string][]Modifier),
25 Sources: map[string][]string{
26 "include": make([]string, 0),
27 "exclude": make([]string, 0),
28 },
29 SourceAliases: make(map[string]string),
30 ConditionTree: nil,
31 }
32}
33
34// HasAttribute checks if this query contains any of the provided attributes.
35func (q *Query) HasAttribute(attributes ...string) bool {

Callers 4

TestParser_ParseSelectFunction · 0.92
TestParser_ParseFromFunction · 0.92
TestParser_ParseWhereFunction · 0.92
parseMethod · 0.92

Calls

no outgoing calls

Tested by 3

TestParser_ParseSelectFunction · 0.74
TestParser_ParseFromFunction · 0.74
TestParser_ParseWhereFunction · 0.74