Skip to content

Commit

Permalink
fix: Update readme file name before releasing, update job name (#7)
Browse files Browse the repository at this point in the history
* fix: Readme crate name, and formatting

* Try it first on regular branch

* Restore to main branch after testing, everything should work nicely now
  • Loading branch information
EmilyMatt authored Jun 6, 2024
1 parent 44e0c3a commit 9b63dd0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish on crates.io
name: Release branch jobs

permissions:
pull-requests: write
Expand Down Expand Up @@ -91,13 +91,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Release-plz needs all the history

- name: Verify main branch
if: github.ref != 'refs/heads/main'
run: |
echo "This workflow can only run on the main branch."
exit 1
- name: Run release-plz
uses: MarcoIeni/[email protected]
with:
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
[![Forum](https://img.shields.io/badge/Forum-falkordb-blue)](https://github.com/orgs/FalkorDB/discussions)
[![Discord](https://img.shields.io/discord/1146782921294884966?style=flat-square)](https://discord.gg/ErBEqN9E)

# falkordb-client-rs
# falkordb-rs

[![Try Free](https://img.shields.io/badge/Try%20Free-FalkorDB%20Cloud-FF8101?labelColor=FDE900&style=for-the-badge&link=https://app.falkordb.cloud)](https://app.falkordb.cloud)

Expand Down Expand Up @@ -35,14 +35,21 @@ docker run --rm -p 6379:6379 falkordb/falkordb
use falkordb::FalkorClientBuilder;

// Connect to FalkorDB
let client = FalkorClientBuilder::new().with_connection_info("falkor://127.0.0.1:6379".try_into().expect("Failed constructing connection info")).build().expect("Failed to build client");
let connection_info: FalkorConnectionInfo = "falkor://127.0.0.1:6379".try_into()
.expect("Invalid connection info");

let client = FalkorClientBuilder::new()
.with_connection_info(connection_info)
.build().expect("Failed to build client");

// Select the social graph
let mut graph = client.select_graph("social");

// Create 100 nodes and return a handful
let nodes = graph.query("UNWIND range(0, 100) AS i CREATE (n { v:1 }) RETURN n LIMIT 10").with_timeout(5000).execute().expect("Failed performing query").data;
for n in nodes {
println!("{:?}", n[0]);
let nodes = graph.query("UNWIND range(0, 100) AS i CREATE (n { v:1 }) RETURN n LIMIT 10")
.with_timeout(5000).execute().expect("Failed performing query");

for n in nodes.data {
println!("{:?}", n[0]);
}
```

0 comments on commit 9b63dd0

Please sign in to comment.