Documentation
¶
Index ¶
- func Operator(query string) string
- type Query
- func (q *Query) ConstructQuery(query string)
- func (q *Query) GetQueryKey() string
- func (q *Query) GetQueryObject() string
- func (q *Query) GetQueryOperator() string
- func (q *Query) GetQueryType() string
- func (q *Query) GetQueryValue() string
- func (q *Query) Print() string
- func (q *Query) QueryGet() interface{}
- func (q *Query) QueryPluck() interface{}
- func (q *Query) QuerySort() interface{}
- func (q *Query) QueryWhere() interface{}
- func (q *Query) RunQuery() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Operator ¶
Operator identifies the operator passed in the query and matches to one from https://github.com/thedevsaddam/gojsonq/wiki/Queries#wherekey-op-val.
Types ¶
type Query ¶
type Query struct { JSONQ *gojsonq.JSONQ // contains filtered or unexported fields }
Query holds information of queries to be executed.
func SetQuery ¶
SetQuery processes the data into a format FromString of gojsonq understands and return finally processed query.
func (*Query) ConstructQuery ¶
ConstructQuery process the query in string to a format that is understood by gojsonq.
func (*Query) GetQueryKey ¶
GetQueryKey returns the key used for query if set.
func (*Query) GetQueryObject ¶
GetQueryObject returns the object used for query if set.
func (*Query) GetQueryOperator ¶
GetQueryOperator returns the operator used for query if exists.
func (*Query) GetQueryType ¶
GetQueryType returns the type of query set.
func (*Query) GetQueryValue ¶
GetQueryValue returns the value used for query if set.
func (*Query) Print ¶
Print prints the Query object to string format, mostly used for debug message.
func (*Query) QueryGet ¶
func (q *Query) QueryGet() interface{}
QueryGet returns response post the GET query.
func (*Query) QueryPluck ¶
func (q *Query) QueryPluck() interface{}
QueryPluck returns response post the PLUCK query.
func (*Query) QuerySort ¶
func (q *Query) QuerySort() interface{}
QuerySort returns response post the SORT query.
func (*Query) QueryWhere ¶
func (q *Query) QueryWhere() interface{}
QueryWhere returns response post the WHERE query.