authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-21 20:32:50 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-21 20:32:50 -07:00
log59c93af1e08e3b0843335710a2348b990a762b44
treeb420d890a6cf9713473aed00d59f12ca3094060d
parent47c7f105c1752823b3d62d78283c713d729cacba

sqlite3- pass allocator to execAlloc


1 files changed, 1 insertions(+), 1 deletions(-)

src/sqlite3.zig+1-1
...@@ -46,7 +46,7 @@ pub fn collect(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptim...@@ -46,7 +46,7 @@ pub fn collect(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptim
46pub fn exec(self: *Self, alloc: *std.mem.Allocator, comptime query: string, args: anytype) !void {46pub fn exec(self: *Self, alloc: *std.mem.Allocator, comptime query: string, args: anytype) !void {
47 var stmt = try self.prepare(query);47 var stmt = try self.prepare(query);
48 defer stmt.deinit();48 defer stmt.deinit();
49 try stmt.execAlloc(.{ .allocator = alloc }, args);49 try stmt.execAlloc(alloc, .{}, args);
50}50}
5151
52pub fn first(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptime query: string, args: anytype) !?T {52pub fn first(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptime query: string, args: anytype) !?T {