summaryrefslogtreecommitdiff
path: root/sqlite.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-12-19rework execMultiGravatar Vincent Rischmann1-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.
2024-12-19dynamic statement: add prepareWithTailGravatar Vincent Rischmann1-1/+5
2024-12-08add a fuzz testGravatar Vincent Rischmann1-0/+67
2024-11-16support custom-binding unionsGravatar notcancername1-2/+11
2024-10-23Reuse field for bindingGravatar IamSanjid1-5/+43
2024-08-29fix for latest zigGravatar Vincent Rischmann1-60/+60
2024-06-23Latest zig master has renamed std.rand to std.RandomGravatar Malcolm Still1-2/+2
2024-04-14all: use our workaround function for SQLITE_TRANSIENTGravatar Vincent Rischmann1-1/+1
2024-04-14fix for latest zigGravatar Vincent Rischmann1-6/+9
Also some major refactoring around the query parsing state.
2023-12-19Add distinct EmptyQuery errorGravatar Jari Vetoniemi1-5/+14
The execMulti will otherwise fail if there's whitespace and comments. Which is common if for example using @embedFile("some-schema.sql");
2023-12-06fix for latest zigGravatar Vincent Rischmann1-1/+1
2023-12-02Update sqlite.zigGravatar Krvopije1-1/+1
std.mem.copy was deprecated
2023-11-23use @hasFieldGravatar Vincent Rischmann1-3/+3
2023-11-23add the fasFn helperGravatar Vincent Rischmann1-1/+1
2023-11-23add the isZigString helperGravatar Vincent Rischmann1-6/+38
2023-11-23rewrite a helper to check if a type is a structGravatar Vincent Rischmann1-5/+11
std.meta.trait doesn't exist anymore.
2023-11-21Update to zig 0.12.0-dev.1664+8ca4a5240Gravatar Ed Yu1-36/+36
2023-11-21Update sqlite.zigGravatar Krvopije1-1/+1
Missed one
2023-11-21Update sqlite.zigGravatar Krvopije1-35/+35
2023-08-17update to Zig 0.11Gravatar Meghan Denny1-1/+1
workaround for https://github.com/ziglang/zig/issues/16663
2023-07-10DynamicStatement.all: use iteratorAllocGravatar Meghan1-1/+1
Statement.all already does
2023-07-07test: add default value for TestUser.ColorGravatar Meghan1-0/+1
2023-07-07readField remove unreachable and support default value in string backed enumsGravatar Meghan1-2/+1
2023-07-06cast builtins removed typeGravatar Meghan1-2/+2
2023-07-06support packed structs as columns backed by their int typeGravatar Meghan1-2/+7
2023-07-02update for latest zigGravatar Vincent Rischmann1-50/+45
2023-06-21update for latest zigGravatar Vincent Rischmann1-6/+6
2023-06-18replace std.math.max with @maxGravatar Vincent Rischmann1-1/+1
2023-05-17replace meta.tagName with @tagNameGravatar Vincent Rischmann1-4/+4
2023-05-17Fix build failures on latest ZigGravatar Lue1-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.
2023-03-11fix calls to sqlite3_bind_text in bindFieldGravatar Vincent Rischmann1-2/+4
2023-02-22fix for latest zig by running 'zig fmt'Gravatar Vincent Rischmann1-12/+12
2023-02-16fix testsGravatar Vincent Rischmann1-1/+1
2022-12-26fix for latest zigGravatar Vincent Rischmann1-15/+15
2022-12-26stop using removed ascii functionsGravatar Vincent Rischmann1-2/+2
2022-12-19Update for latest Zig builtin renamesGravatar Ryan Liptak1-7/+7
See https://github.com/ziglang/zig/pull/13930
2022-12-09fix redundant comptimeGravatar Vincent Rischmann1-1/+1
2022-12-01fix for latest zigGravatar Vincent Rischmann1-2/+2
2022-11-01Fix compile error with Zig 0.10.0Gravatar Ryan Liptak1-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); ^~~~ ```
2022-09-29drop comptime from execMulti queryGravatar Luna1-1/+1
not needed as we always prepare a dynamic statement
2022-09-18add the virtual table implementationGravatar Vincent Rischmann1-0/+25
2022-09-18move test helpersGravatar Vincent Rischmann1-44/+1
2022-09-18move setFunctionArgument to helpers.setTypeFromValueGravatar Vincent Rischmann1-50/+2
Will be used in the virtual table implementation
2022-09-18move setFunctionResult to helpers.setResultGravatar Vincent Rischmann1-37/+4
This function will also be used by the virtual table implementation.
2022-09-13remove pointless discardGravatar Vincent Rischmann1-1/+0
2022-08-31drop the table in the testsGravatar Vincent Rischmann1-4/+16
Necessary for running the tests with eg `-Din_memory=false -Ddbfile=/tmp/my.db`
2022-08-15make `c` public againGravatar Vincent Rischmann1-1/+1
Accidentally made it private during a refactoring
2022-08-14require SQLite >= 3.21.0Gravatar Vincent Rischmann1-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.
2022-08-05move versionGreaterThanOrEqualTo in sqlite.zigGravatar Vincent Rischmann1-0/+5
We will need it later on.
2022-08-05move Text in sqlite.zigGravatar Vincent Rischmann1-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.