summaryrefslogtreecommitdiff
path: root/errors.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-08-09chore: update to zig 0.15Gravatar Tesseract221-4/+1
Everything other than loadextension works. zig 0.15 remove usingnamespac, so tha whole mechanism has to be reworked, and idk how
2023-07-02update for latest zigGravatar Vincent Rischmann1-2/+2
2022-08-14require SQLite >= 3.21.0Gravatar Vincent Rischmann1-2/+1
After some testing it turns out we need at least SQLite 3.21.0 to compile. We _could_ work around this and make zig-sqlite work with older SQLite versions but I don't think it's necessary because: * "old" distributions like Debian Buster, RHEL 8 ship with SQLite > 3.21.0 * in any case if people want to build for OSes where SQLite is too old they can use the bundled source code.
2022-08-05move versionGreaterThanOrEqualTo in sqlite.zigGravatar Vincent Rischmann1-4/+2
We will need it later on.
2022-08-04move DetailedError, do some cleanupGravatar Vincent Rischmann1-6/+50
DetailedError uses getLastErrorOffset, which must check the SQLite version with versionGreaterThanOrEqualTo. Instead of publicly exposing versionGreaterThanOrEqualTo in sqlite.zig move DetailedError in errors.zig
2022-08-04use a single cImportGravatar Vincent Rischmann1-3/+1
Two cImport calls generate incompatible code: we can't use the structs generated in sqlite.zig in functions in errors.zig for example Up until now it wasn't actually a problem since in errors.zig we only ever used constants which does work, but now we want to introduce functions in this file.
2022-08-04add greaterThanOrEqualsToGravatar jiacai20501-5/+9
2022-08-02remove obsolete todoGravatar Vincent Rischmann1-3/+0
2022-08-02some error codes are only available with sqlite >= 3.22.0Gravatar Vincent Rischmann1-5/+11
We wrongly assumed they were always present but after testing with SQLite 3.21.0 it's not the case. I think they were missed because their first version is not documented.
2021-09-04fix for ziglang/zig#9618Gravatar Vincent Rischmann1-0/+0
2021-04-23error: return error directly so that line in stacktrace is relevantGravatar daurnimator1-87/+87
2020-12-31fix error checks based on the sqlite versionGravatar Vincent Rischmann1-10/+38
2020-12-31add proper error typesGravatar Vincent Rischmann1-0/+240
* Add SQLiteError and various SQLiteExtendedXYZError * Replace old errors with the SQLite ones where appropriate Fixes #8