authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-05 19:35:46 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-03-05 19:35:46 -08:00
logc3bcc53de6ce937c74c927d9b146e226f0fc23b0
tree4cb7ceccf7c1e082ab613ff65178d810ee08ee35
parent43788aee132326a7e3c02ef862c63368e5670fc4
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

some prep for being less tied to sqlite


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

src/sqlite3.zig+2-1
...@@ -8,7 +8,8 @@ const Self = @This();...@@ -8,7 +8,8 @@ const Self = @This();
8db: sqlite.Db = undefined,8db: sqlite.Db = undefined,
9mutex: std.Thread.Mutex,9mutex: std.Thread.Mutex,
1010
11pub fn connect(path: [:0]const u8) !Self {11pub fn connect(allocator: std.mem.Allocator, path: [:0]const u8) !Self {
12 _ = allocator;
12 return Self{13 return Self{
13 .db = try sqlite.Db.init(.{14 .db = try sqlite.Db.init(.{
14 .mode = sqlite.Db.Mode{ .File = path },15 .mode = sqlite.Db.Mode{ .File = path },