kuzu
Version, currently main branch1 version
- main branchlatestSep 11, 2024
github.com/jgaskins/kuzu
Crystal bindings for the Kuzu embedded graph database
Installation
# Add this to your shard.yml
dependencies:
kuzu:
github: jgaskins/kuzu
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 1.12.1- License
- MIT
- Author
- Jamie Gaskins
Dependencies
Runtime Dependencies
- db*github: crystal-lang/crystal-db
Development Dependencies
- kuzu*path: .dev
README
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
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Sep 11, 2024
- Crystal
>= 1.12.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/jgaskins/kuzu
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1