kuzu
kuzu
Kuzu is an embedded property-graph database.
Installation
-
Add the dependency to your
shard.yml
:dependencies: kuzu: github: jgaskins/kuzu
-
Run
shards install
Usage
require "kuzu"
kuzu = Kuzu::Client.new("/path/to/db")
Running a query
Use Kuzu::Client#query
to run a query that retrieves data, specifying the types of the return values, and a block that yields those return values for each matching result.
kuzu.query "MATCH (user:User) RETURN user.name", as: {String} do |(name)|
# ...
end
Running a query without a return value
The Kuzu::Client#execute
method executes a query against the database that does not return a value. You can use this method when running DDL queries and some DML queries that don't require a RETURN
clause.
As a rule of thumb, use query
if your query has a RETURN
clause and execute
if it does not.
Prepared queries
Not yet implemented in this client, but they will be.
Development
TODO: Write development instructions here
Contributing
- Fork it (https://github.com/jgaskins/kuzu/fork)
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Contributors
- Jamie Gaskins - creator and maintainer
Repository
kuzu
Owner
Statistic
- 2
- 0
- 1
- 0
- 1
- 3 months ago
- June 7, 2024
License
MIT License
Links
Synced at
Fri, 20 Dec 2024 21:22:32 GMT
Languages