Skip to content

Commit edf537c

Browse files
committed
Start adding in other api functions
1 parent f346b62 commit edf537c

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

src/KuzuGD/KuzuGD.cpp

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,25 @@ Array KuzuGD::get_config() const {
112112
return config_array;
113113
}
114114

115+
/******************************************************************
116+
117+
118+
Management Functions
119+
120+
121+
******************************************************************/
122+
123+
// Set the query timeout value in milliseconds for the connection
124+
bool KuzuGD::query_timeout(int timeout_millis) {
125+
return kuzu_connection_set_query_timeout(dbConnection, timeout_millis);
126+
}
127+
128+
//Interrupt the Current Query Execution
129+
void KuzuGD::interrupt_connection() {
130+
kuzu_connection_interrupt(dbConnection);
131+
return;
132+
}
133+
115134
/******************************************************************
116135
117136

src/KuzuGD/KuzuGD.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,15 @@ class KuzuGD : public Node {
8282

8383
Array get_config() const;
8484

85+
/********************************************
86+
87+
Management Functions
88+
89+
********************************************/
90+
91+
bool query_timeout(int timeout_millis);
92+
void interrupt_connection();
93+
8594
/********************************************
8695
8796
Initialization

0 commit comments

Comments
 (0)