Skip to content

Commit 683f759

Browse files
committed
Rename to RO_Query.
1 parent 3618655 commit 683f759

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

client_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ func TestMatchQuery(t *testing.T) {
6868
checkQueryResults(t, res)
6969
}
7070

71-
func TestMatchROQuery(t *testing.T) {
71+
func TestMatchRO_Query(t *testing.T) {
7272
q := "MATCH (s)-[e]->(d) RETURN s,e,d"
73-
res, err := graph.ROQuery(q)
73+
res, err := graph.RO_Query(q)
7474
if err != nil {
7575
t.Error(err)
7676
}
@@ -134,9 +134,9 @@ func TestCreateQuery(t *testing.T) {
134134
assert.Equal(t, w.Label, "WorkPlace", "Unexpected node label.")
135135
}
136136

137-
func TestCreateROQueryFailure(t *testing.T) {
137+
func TestCreateRO_QueryFailure(t *testing.T) {
138138
q := "CREATE (w:WorkPlace {name:'RedisLabs'})"
139-
_, err := graph.ROQuery(q)
139+
_, err := graph.RO_Query(q)
140140
assert.NotNil(t, err, "error should not be nil")
141141
}
142142

graph.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ func (g *Graph) Query(q string) (*QueryResult, error) {
108108
return QueryResultNew(g, r)
109109
}
110110

111-
// ROQuery executes a read only query against the graph.
112-
func (g *Graph) ROQuery(q string) (*QueryResult, error) {
111+
// RO_Query executes a read only query against the graph.
112+
func (g *Graph) RO_Query(q string) (*QueryResult, error) {
113113

114114
r, err := g.Conn.Do("GRAPH.RO_QUERY", g.Id, q, "--compact")
115115
if err != nil {

0 commit comments

Comments
 (0)