Skip to content

Commit 522b82f

Browse files
committed
Think these are the last functions necessary
1 parent 7dbffd6 commit 522b82f

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

src/KuzuGD/KuzuGD.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,14 @@ void KuzuGD::interrupt_connection() {
131131
return;
132132
}
133133

134+
int KuzuGD::storage_version() {
135+
return kuzu_get_storage_version();
136+
}
137+
138+
String KuzuGD::get_kuzu_version() {
139+
return String::utf8(kuzu_get_version());
140+
}
141+
134142
/******************************************************************
135143
136144
@@ -886,6 +894,10 @@ void KuzuGD::_bind_methods() {
886894

887895
ClassDB::bind_method(D_METHOD("interrupt_connection"), &KuzuGD::interrupt_connection);
888896

897+
ClassDB::bind_method(D_METHOD("get_kuzu_version"), &KuzuGD::get_kuzu_version);
898+
899+
ClassDB::bind_method(D_METHOD("storage_version"), &KuzuGD::storage_version);
900+
889901
/********************************************
890902
891903
Initialization

src/KuzuGD/KuzuGD.h

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,13 @@ class KuzuGD : public Node {
8989
********************************************/
9090

9191
bool query_timeout(int timeout_millis);
92+
9293
void interrupt_connection();
9394

95+
int storage_version();
96+
97+
String get_kuzu_version();
98+
9499
/********************************************
95100
96101
Initialization
@@ -122,12 +127,6 @@ class KuzuGD : public Node {
122127

123128
Array execute_query(const String &query);
124129

125-
/*
126-
@param params structure:
127-
Dictionary params;
128-
params["user_id"] = 42; // INT
129-
params["username"] = "John"; // STRING
130-
*/
131130
Array execute_prepared_query(const String &query, const Dictionary &params);
132131

133132
int query_columns_count(const String &query);

0 commit comments

Comments
 (0)