MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / ROQuery

Method ROQuery

graph.go:133–141  ·  view source on GitHub ↗

ROQuery executes a read only query against the graph.

(q string)

Source from the content-addressed store, hash-verified

131
132// ROQuery executes a read only query against the graph.
133func (g *Graph) ROQuery(q string) (*QueryResult, error) {
134
135 r, err := g.Conn.Do("GRAPH.RO_QUERY", g.Id, q, "--compact")
136 if err != nil {
137 return nil, err
138 }
139
140 return QueryResultNew(g, r)
141}
142
143func (g *Graph) ParameterizedQuery(q string, params map[string]interface{}) (*QueryResult, error) {
144 if(params != nil){

Callers 2

TestMatchROQueryFunction · 0.80
TestCreateROQueryFailureFunction · 0.80

Calls 1

QueryResultNewFunction · 0.85

Tested by 2

TestMatchROQueryFunction · 0.64
TestCreateROQueryFailureFunction · 0.64