Skip to content

Commit 3618655

Browse files
committed
Rename QueryRO to ROQuery.
1 parent 7d23851 commit 3618655

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 TestMatchQueryRO(t *testing.T) {
71+
func TestMatchROQuery(t *testing.T) {
7272
q := "MATCH (s)-[e]->(d) RETURN s,e,d"
73-
res, err := graph.QueryRO(q)
73+
res, err := graph.ROQuery(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 TestCreateQueryROFailure(t *testing.T) {
137+
func TestCreateROQueryFailure(t *testing.T) {
138138
q := "CREATE (w:WorkPlace {name:'RedisLabs'})"
139-
_, err := graph.QueryRO(q)
139+
_, err := graph.ROQuery(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-
// QueryRO executes a read only query against the graph.
112-
func (g *Graph) QueryRO(q string) (*QueryResult, error) {
111+
// ROQuery executes a read only query against the graph.
112+
func (g *Graph) ROQuery(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)