Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AviAvni committed Apr 1, 2024
1 parent 5e7a972 commit c486250
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ A simple test suite is provided, and can be run with:
$ go test
```

The tests expect a Redis server with the FalkorDB module loaded to be available at localhost:6379
The tests expect a FalkorDB server to be available at localhost:6379

## License

Expand Down
4 changes: 2 additions & 2 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func checkQueryResults(t *testing.T, res *QueryResult) {
}

func TestCreateQuery(t *testing.T) {
q := "CREATE (w:WorkPlace {name:'RedisLabs'})"
q := "CREATE (w:WorkPlace {name:'FalkorDB'})"
res, err := graph.Query(q)
if err != nil {
t.Error(err)
Expand All @@ -134,7 +134,7 @@ func TestCreateQuery(t *testing.T) {
}

func TestCreateROQueryFailure(t *testing.T) {
q := "CREATE (w:WorkPlace {name:'RedisLabs'})"
q := "CREATE (w:WorkPlace {name:'FalkorDB'})"
_, err := graph.ROQuery(q)
assert.NotNil(t, err, "error should not be nil")
}
Expand Down
6 changes: 3 additions & 3 deletions example_graph_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import (
"github.com/FalkorDB/falkordb-go"
)

func ExampleGraphNew() {
func ExampleSelectGraph() {
db, _ := falkordb.FalkorDBNew("0.0.0.0:6379", &falkordb.ConnectionOption{})

graph := db.SelectGraph("social")

q := "CREATE (w:WorkPlace {name:'RedisLabs'}) RETURN w"
q := "CREATE (w:WorkPlace {name:'FalkorDB'}) RETURN w"
res, _ := graph.Query(q)

res.Next()
Expand Down Expand Up @@ -73,7 +73,7 @@ func ExampleGraphNew() {

// graph := falkordb.GraphNew("social", pool.Get())

// q := "CREATE (w:WorkPlace {name:'RedisLabs'}) RETURN w"
// q := "CREATE (w:WorkPlace {name:'FalkorDB'}) RETURN w"
// res, _ := graph.Query(q)

// res.Next()
Expand Down
12 changes: 6 additions & 6 deletions examples/falkordb_tls_client/falkordb_tls_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
)

var (
tlsCertFile = flag.String("tls-cert-file", "redis.crt", "A a X.509 certificate to use for authenticating the server to connected clients, masters or cluster peers. The file should be PEM formatted.")
tlsKeyFile = flag.String("tls-key-file", "redis.key", "A a X.509 privat ekey to use for authenticating the server to connected clients, masters or cluster peers. The file should be PEM formatted.")
tlsCertFile = flag.String("tls-cert-file", "falkordb.crt", "A a X.509 certificate to use for authenticating the server to connected clients, masters or cluster peers. The file should be PEM formatted.")
tlsKeyFile = flag.String("tls-key-file", "falkordb.key", "A a X.509 privat ekey to use for authenticating the server to connected clients, masters or cluster peers. The file should be PEM formatted.")
tlsCaCertFile = flag.String("tls-ca-cert-file", "ca.crt", "A PEM encoded CA's certificate file.")
host = flag.String("host", "127.0.0.1:6379", "Redis host.")
password = flag.String("password", "", "Redis password.")
host = flag.String("host", "127.0.0.1:6379", "FalkorDB host.")
password = flag.String("password", "", "FalkorDB password.")
)

func exists(filename string) (exists bool) {
Expand All @@ -30,7 +30,7 @@ func exists(filename string) (exists bool) {
}

/*
* Example of how to establish an SSL connection from your app to the RedisAI Server
* Example of how to establish an SSL connection from your app to the FalkorDB Server
*/
func main() {
flag.Parse()
Expand Down Expand Up @@ -74,7 +74,7 @@ func main() {

graph := db.SelectGraph("social")

q := "CREATE (w:WorkPlace {name:'RedisLabs'}) RETURN w"
q := "CREATE (w:WorkPlace {name:'FalkorDB'}) RETURN w"
res, _ := graph.Query(q)

res.Next()
Expand Down

0 comments on commit c486250

Please sign in to comment.