ROQuery executes a read only query against the graph.
(q string)
| 131 | |
| 132 | // ROQuery executes a read only query against the graph. |
| 133 | func (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 | |
| 143 | func (g *Graph) ParameterizedQuery(q string, params map[string]interface{}) (*QueryResult, error) { |
| 144 | if(params != nil){ |