Godot 4.4 is currently used Version
Embedded property graph database built for speed. Using Graph Query Language of Cypher.
- Create an Instance of Kuzu
- Set the Database Folder Path
- Initialize the Database
- Create a Connection to the DB with thread count
var myKuzuDB : KuzuGD = KuzuGD.new(); # Instantiate
var db_path = ProjectSettings.globalize_path("res://data/database/kuzu_db");
var success_db = myKuzuDB.kuzu_init(db_path); # Set Path
var success_connect = myKuzuDB.kuzu_connect(1); # Activate Connection
- Execute Queries
- Define Tables
- Write Data
- Read Data
# Define Tables
myKuzuDB.execute_query("CREATE NODE TABLE IF NOT EXISTS person(name STRING, age INT64, PRIMARY KEY(name));");
# Write Data
myKuzuDB.execute_query("CREATE (:person {name: 'Alice', age: 30});");
# Read Data
var queryResult : Array = myKuzuDB.execute_query("MATCH (p:person) RETURN p.*");
print(queryResult);
Requires the Kuzu Binaries in the bin/<platform>/kuzu
folders, pythons Scons, Godot, g++ compiler.
Any and all Contributions are subject to the CLA.md