Closed robguthrie closed 4 months ago
Oh, I just found you have a pragma function for this stuff.
solved with
if (try db.pragmaAlloc([]const u8, allocator, .{}, "journal_mode", "WAL")) |journal_mode| {
allocator.free(journal_mode);
}
zig-sqlite commit
fd17eb9a4ea35f515cc7c2e4755a3a5e284a0bd3
Zig version
0.13.0-dev.211+6a65561e3
Steps to reproduce
or something similar to that... gives something similar to the following error
The short version of this, is that running some PRAGMA expressions fails with a 100 result code.
https://www.sqlite.org/rescode.html says:
(100) SQLITE_ROW
The SQLITE_ROW result code returned by sqlite3_step() indicates that another row of output is available.
I think this is because, when in the cli, the command returns "wal" or "memory". Which can safely be ignored.
Anyway.. I'll just conclude this issue by saying I'm REALLY enjoying your library. Thank you so much, it's been a joy to learn zig with this at the center of my app.
Expected behaviour
just work/return normally. do I have to keep writing in here to get the green button to show up? oh there it goes