summaryrefslogtreecommitdiff
path: root/errors.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
* update for latest zigGravatar Vincent Rischmann2023-07-021-2/+2
|
* require SQLite >= 3.21.0Gravatar Vincent Rischmann2022-08-141-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.
* move versionGreaterThanOrEqualTo in sqlite.zigGravatar Vincent Rischmann2022-08-051-4/+2
| | | | We will need it later on.
* move DetailedError, do some cleanupGravatar Vincent Rischmann2022-08-041-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
* use a single cImportGravatar Vincent Rischmann2022-08-041-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.
* add greaterThanOrEqualsToGravatar jiacai20502022-08-041-5/+9
|
* remove obsolete todoGravatar Vincent Rischmann2022-08-021-3/+0
|
* some error codes are only available with sqlite >= 3.22.0Gravatar Vincent Rischmann2022-08-021-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.
* fix for ziglang/zig#9618Gravatar Vincent Rischmann2021-09-041-0/+268