Kuzu is an embedded property-graph database.
Add the dependency to your shard.yml
:
dependencies:
kuzu:
github: jgaskins/kuzu
Run shards install
require "kuzu"
kuzu = Kuzu::Client.new("/path/to/db")
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
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.
Not yet implemented in this client, but they will be.
TODO: Write development instructions here
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)