summaryrefslogtreecommitdiff
path: root/errors.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
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