summaryrefslogtreecommitdiff
path: root/src/duckdb/PreparedStatement.zig
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-08-03 13:43:41 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-08-03 13:44:49 +0200
commitc60c42fc64d9d95b707fc90b7bc08beffd5416af (patch)
tree0cd936e132ee4c15bfcd58df58eb5f4f90fc0fc4 /src/duckdb/PreparedStatement.zig
parent9061b8864d5bf99871622d741a422356bcc82120 (diff)
Reorganize duckdb
Diffstat (limited to 'src/duckdb/PreparedStatement.zig')
-rw-r--r--src/duckdb/PreparedStatement.zig4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/duckdb/PreparedStatement.zig b/src/duckdb/PreparedStatement.zig
index e81ac4c..d6b60b2 100644
--- a/src/duckdb/PreparedStatement.zig
+++ b/src/duckdb/PreparedStatement.zig
@@ -136,6 +136,10 @@ pub fn exec(self: *Self, comptime T: type) !Result(T){
return try Result(T).init(result);
}
+pub fn clear(self: *Self) void {
+ c.duckdb_clear_bindings(self._q);
+}
+
pub fn deinit(self: *Self) void{
c.duckdb_destroy_prepare(&self._q);
}