File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,14 @@ void KuzuGD::interrupt_connection() {
131
131
return ;
132
132
}
133
133
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
+
134
142
/* *****************************************************************
135
143
136
144
@@ -886,6 +894,10 @@ void KuzuGD::_bind_methods() {
886
894
887
895
ClassDB::bind_method (D_METHOD (" interrupt_connection" ), &KuzuGD::interrupt_connection);
888
896
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
+
889
901
/* *******************************************
890
902
891
903
Initialization
Original file line number Diff line number Diff line change @@ -89,8 +89,13 @@ class KuzuGD : public Node {
89
89
********************************************/
90
90
91
91
bool query_timeout (int timeout_millis);
92
+
92
93
void interrupt_connection ();
93
94
95
+ int storage_version ();
96
+
97
+ String get_kuzu_version ();
98
+
94
99
/* *******************************************
95
100
96
101
Initialization
@@ -122,12 +127,6 @@ class KuzuGD : public Node {
122
127
123
128
Array execute_query (const String &query);
124
129
125
- /*
126
- @param params structure:
127
- Dictionary params;
128
- params["user_id"] = 42; // INT
129
- params["username"] = "John"; // STRING
130
- */
131
130
Array execute_prepared_query (const String &query, const Dictionary ¶ms);
132
131
133
132
int query_columns_count (const String &query);
You can’t perform that action at this time.
0 commit comments