Skip to content

Commit 84473a4

Browse files
committed
Reverted RO_Graph to Go naming convention
1 parent 683f759 commit 84473a4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func TestMatchQuery(t *testing.T) {
7070

7171
func TestMatchRO_Query(t *testing.T) {
7272
q := "MATCH (s)-[e]->(d) RETURN s,e,d"
73-
res, err := graph.RO_Query(q)
73+
res, err := graph.ROQuery(q)
7474
if err != nil {
7575
t.Error(err)
7676
}
@@ -136,7 +136,7 @@ func TestCreateQuery(t *testing.T) {
136136

137137
func TestCreateRO_QueryFailure(t *testing.T) {
138138
q := "CREATE (w:WorkPlace {name:'RedisLabs'})"
139-
_, err := graph.RO_Query(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-
// RO_Query executes a read only query against the graph.
112-
func (g *Graph) RO_Query(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)