| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | rework execMulti | 2024-12-19 | 1 | -25/+6 | |
| | | | | | | | | | | We don't have to expose the tail pointer to get execMulti to work: the tail pointer can stay local to execMulti instead of polluting the QueryOptions. This is a breaking change but as far as I can tell people only use execMulti, never the tail pointer for anything, so I guess it's fine. | ||||
| * | dynamic statement: add prepareWithTail | 2024-12-19 | 1 | -1/+5 | |
| | | |||||
| * | add a fuzz test | 2024-12-08 | 1 | -0/+67 | |
| | | |||||
| * | Merge pull request #169 from notcancername/union | 2024-11-17 | 1 | -2/+11 | |
| |\ | | | | | support custom-binding packed unions | ||||
| | * | support custom-binding unions | 2024-11-16 | 1 | -2/+11 | |
| | | | |||||
| * | | Reuse field for binding | 2024-10-23 | 1 | -5/+43 | |
| |/ | |||||
| * | fix for latest zig | 2024-08-29 | 1 | -60/+60 | |
| | | |||||
| * | Latest zig master has renamed std.rand to std.Random | 2024-06-23 | 1 | -2/+2 | |
| | | |||||
| * | all: use our workaround function for SQLITE_TRANSIENT | 2024-04-14 | 1 | -1/+1 | |
| | | |||||
| * | fix for latest zig | 2024-04-14 | 1 | -6/+9 | |
| | | | | | Also some major refactoring around the query parsing state. | ||||
| * | Add distinct EmptyQuery error | 2023-12-19 | 1 | -5/+14 | |
| | | | | | | The execMulti will otherwise fail if there's whitespace and comments. Which is common if for example using @embedFile("some-schema.sql"); | ||||
| * | fix for latest zig | 2023-12-06 | 1 | -1/+1 | |
| | | |||||
| * | Update sqlite.zig | 2023-12-02 | 1 | -1/+1 | |
| | | | | std.mem.copy was deprecated | ||||
| * | use @hasField | 2023-11-23 | 1 | -3/+3 | |
| | | |||||
| * | add the fasFn helper | 2023-11-23 | 1 | -1/+1 | |
| | | |||||
| * | add the isZigString helper | 2023-11-23 | 1 | -6/+38 | |
| | | |||||
| * | rewrite a helper to check if a type is a struct | 2023-11-23 | 1 | -5/+11 | |
| | | | | | std.meta.trait doesn't exist anymore. | ||||
| * | Update to zig 0.12.0-dev.1664+8ca4a5240 | 2023-11-21 | 1 | -36/+36 | |
| | | |||||
| * | update to Zig 0.11 | 2023-08-17 | 1 | -1/+1 | |
| | | | | | workaround for https://github.com/ziglang/zig/issues/16663 | ||||
| * | DynamicStatement.all: use iteratorAlloc | 2023-07-10 | 1 | -1/+1 | |
| | | | | Statement.all already does | ||||
| * | test: add default value for TestUser.Color | 2023-07-07 | 1 | -0/+1 | |
| | | |||||
| * | readField remove unreachable and support default value in string backed enums | 2023-07-07 | 1 | -2/+1 | |
| | | |||||
| * | cast builtins removed type | 2023-07-06 | 1 | -2/+2 | |
| | | |||||
| * | support packed structs as columns backed by their int type | 2023-07-06 | 1 | -2/+7 | |
| | | |||||
| * | update for latest zig | 2023-07-02 | 1 | -50/+45 | |
| | | |||||
| * | update for latest zig | 2023-06-21 | 1 | -6/+6 | |
| | | |||||
| * | replace std.math.max with @max | 2023-06-18 | 1 | -1/+1 | |
| | | |||||
| * | replace meta.tagName with @tagName | 2023-05-17 | 1 | -4/+4 | |
| | | |||||
| * | Fix build failures on latest Zig | 2023-05-17 | 1 | -2/+2 | |
| | | | | | | | | Now the correct build APIs and `@memset` builtin are used. Unfortunately cImport fails for `aarch64` and `riscv64` targets, but I'm not sure how to fix this. | ||||
| * | fix calls to sqlite3_bind_text in bindField | 2023-03-11 | 1 | -2/+4 | |
| | | |||||
| * | fix for latest zig by running 'zig fmt' | 2023-02-22 | 1 | -12/+12 | |
| | | |||||
| * | fix tests | 2023-02-16 | 1 | -1/+1 | |
| | | |||||
| * | fix for latest zig | 2022-12-26 | 1 | -15/+15 | |
| | | |||||
| * | stop using removed ascii functions | 2022-12-26 | 1 | -2/+2 | |
| | | |||||
| * | Update for latest Zig builtin renames | 2022-12-19 | 1 | -7/+7 | |
| | | | | | See https://github.com/ziglang/zig/pull/13930 | ||||
| * | fix redundant comptime | 2022-12-09 | 1 | -1/+1 | |
| | | |||||
| * | fix for latest zig | 2022-12-01 | 1 | -2/+2 | |
| | | |||||
| * | Fix compile error with Zig 0.10.0 | 2022-11-01 | 1 | -1/+1 | |
| | | | | | | | | | | | Fixes the following error: ``` sqlite.zig:343:50: error: expected type '[*c]const u8', found '[:0]const u8' const result = c.sqlite3_open_v2(path, &db, flags, null); ^~~~ ``` | ||||
| * | drop comptime from execMulti query | 2022-09-29 | 1 | -1/+1 | |
| | | | | | not needed as we always prepare a dynamic statement | ||||
| * | add the virtual table implementation | 2022-09-18 | 1 | -0/+25 | |
| | | |||||
| * | move test helpers | 2022-09-18 | 1 | -44/+1 | |
| | | |||||
| * | move setFunctionArgument to helpers.setTypeFromValue | 2022-09-18 | 1 | -50/+2 | |
| | | | | | Will be used in the virtual table implementation | ||||
| * | move setFunctionResult to helpers.setResult | 2022-09-18 | 1 | -37/+4 | |
| | | | | | This function will also be used by the virtual table implementation. | ||||
| * | remove pointless discard | 2022-09-13 | 1 | -1/+0 | |
| | | |||||
| * | drop the table in the tests | 2022-08-31 | 1 | -4/+16 | |
| | | | | | Necessary for running the tests with eg `-Din_memory=false -Ddbfile=/tmp/my.db` | ||||
| * | make `c` public again | 2022-08-15 | 1 | -1/+1 | |
| | | | | | Accidentally made it private during a refactoring | ||||
| * | require SQLite >= 3.21.0 | 2022-08-14 | 1 | -5/+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.zig | 2022-08-05 | 1 | -0/+5 | |
| | | | | | We will need it later on. | ||||
| * | move Text in sqlite.zig | 2022-08-05 | 1 | -1/+3 | |
| | | | | | | | | | | At first Blob and Text were defined in query.zig because they were used for bind parameters, but now we also use them for reading text or blob columns appropriately. Both types now live in sqlite.zig which query.zig already imports so it doesn't change anything. | ||||
| * | move DetailedError, do some cleanup | 2022-08-04 | 1 | -43/+3 | |
| | | | | | | | | | DetailedError uses getLastErrorOffset, which must check the SQLite version with versionGreaterThanOrEqualTo. Instead of publicly exposing versionGreaterThanOrEqualTo in sqlite.zig move DetailedError in errors.zig | ||||