View Source KuzuNif (KuzuNif v0.10.1)

Summary

Functions

Create a new connection to a Kuzu database.

Create a new Kuzu database at the specified path.

Run a query using an existing connection.

Run a query using a new db and connection.

Functions

create_connection(db)

Create a new connection to a Kuzu database.

Examples

conn = KuzuNif.create_connection(db)

create_database(path)

Create a new Kuzu database at the specified path.

Returns a resource that can be used to create connections.

Examples

db = KuzuNif.create_database("path/to/db")

query(conn, query)

Run a query using an existing connection.

Examples

result = KuzuNif.query(conn, "MATCH (u:User) RETURN u.name, u.age")

run_query(path, query)

Run a query using a new db and connection.

Examples

{:ok, result} = KuzuNif.run_query("path/to/db", "MATCH (u:User) RETURN u.name, u.age")