| Commit message (Collapse) | Author | Age | Files | Lines | ||
|---|---|---|---|---|---|---|
| ... | ||||||
| * | 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 | |||||
| * | use a single cImport | 2022-08-04 | 1 | -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. | |||||
| * | no need for 'comptime' for this check | 2022-08-02 | 1 | -1/+1 | ||
| | | | | | A comparison against a const is already comptime. | |||||
| * | create a specific CreateFunctionFlag struct based on the SQLite version | 2022-08-02 | 1 | -2/+16 | ||
| | | ||||||
| * | add a way to get the aggregate context with createAggregateFunction | 2022-07-14 | 1 | -53/+161 | ||
| | | | | | | | | | | | | | | | | | | | | | The old way of working was that we always passed the user context as first argument to both `step` and `finalize` functions and the caller had no way of getting the aggregate context from SQLite (http://www3.sqlite.org/c3ref/aggregate_context.html). Now both `step` and `finalize` functions must have a first argument of type `FunctionContext`: fn step(fctx: FunctionContext, input: u32) void { var ctx = fctx.aggregateContext(*u32) orelse return; ctx.* += input; } fn finalize(ctx: *u32) u32 { var ctx = fctx.aggregateContext(*u32) orelse return 0; return ctx.sum; } Fixes #89 | |||||
| * | clarify the compile error | 2022-05-24 | 1 | -1/+1 | ||
| | | ||||||
| * | Make ParsedQuery a generic on query length | 2022-05-17 | 1 | -2/+2 | ||
| | | ||||||
| * | Make errorFromResultCode public | 2022-05-15 | 1 | -0/+1 | ||
| | | | | Useful for direct C API users. | |||||
| * | remove unreachable condition | 2022-05-14 | 1 | -2/+0 | ||
| | | ||||||
| * | add test for single statement in execMulti | 2022-05-14 | 1 | -1/+9 | ||
| | | ||||||
| * | rename to execMulti | 2022-05-14 | 1 | -2/+2 | ||
| | | ||||||
| * | add newlines and comments to runMulti test case | 2022-05-14 | 1 | -1/+1 | ||
| | | ||||||
| * | fix splitting logic for runMulti | 2022-05-14 | 1 | -4/+21 | ||
| | | ||||||
| * | copy options over | 2022-05-14 | 1 | -4/+5 | ||
| | | ||||||
| * | add Db.runMulti | 2022-05-14 | 1 | -1/+24 | ||
| | | ||||||
| * | add a test for a bind marker with an optional type | 2022-05-03 | 1 | -14/+34 | ||
| | | ||||||
| * | the '_' character is valid in a named bind parameter | 2022-05-02 | 1 | -2/+2 | ||
| | | ||||||
| * | put the TODO comment at the end of the line instead | 2022-05-02 | 1 | -9/+3 | ||
| | | | | | | | | | | | When using an explicit error set one must add the "Workaround" error in their error set; putting the explanation as to why it exists at the end of the line makes it so it is displayed directly in the output of the compiler. Before a user had to go look at the source code to understand why we have this workaround. | |||||
| * | Makes sqlite.Error pub. | 2022-04-29 | 1 | -1/+2 | ||
| | | ||||||
| * | remove unused assert | 2022-04-24 | 1 | -3/+0 | ||
| | | ||||||
| * | clarify type name | 2022-04-24 | 1 | -3/+3 | ||
| | | ||||||
| * | add compile error when passing non-struct to Statement.bind | 2022-04-24 | 1 | -0/+5 | ||
| | | ||||||
| * | add test for runtime slices as DynamicStatement args | 2022-04-24 | 1 | -0/+22 | ||
| | | ||||||
| * | emit compileError on unsupported pointer sizes | 2022-04-24 | 1 | -4/+8 | ||
| | | ||||||
| * | add support for arrays as runtime bind values | 2022-04-24 | 1 | -0/+5 | ||
| | | ||||||
| * | allow slices to be passed as bind parameters | 2022-04-24 | 1 | -9/+22 | ||
| | | ||||||
| * | remove the 'opening' logs | 2022-04-23 | 1 | -4/+0 | ||
| | | ||||||
| * | handle tagged union when binding parameters | 2022-04-23 | 1 | -0/+87 | ||
| | | ||||||
| * | add the Db.execAlloc method | 2022-04-21 | 1 | -0/+19 | ||
| | | ||||||
| * | remove comment | 2022-04-21 | 1 | -3/+0 | ||
| | | ||||||
| * | cleanup the temporary values correctly for enums | 2022-04-21 | 1 | -26/+42 | ||
| | | ||||||
| * | check explicitly that bindField is implemented | 2022-04-21 | 1 | -1/+7 | ||
| | | ||||||
| * | fix alignCast in the xStep callback of createAggregateFunction | 2022-04-17 | 1 | -12/+8 | ||
| | | ||||||
| * | factor the CreateFunctionFlag to c_int code | 2022-04-17 | 1 | -14/+15 | ||
| | | ||||||
| * | work on supporting aggregate SQL functions | 2022-04-17 | 1 | -78/+259 | ||
| | | ||||||
| * | document CreateFunctionFlag | 2022-04-16 | 1 | -0/+8 | ||
| | | ||||||
| * | constrain the error set of createScalarFunction | 2022-04-16 | 1 | -1/+1 | ||
| | | ||||||
| * | add createScalarFunction to create a user-defined scalar function | 2022-04-03 | 1 | -0/+292 | ||
| | | ||||||
| * | only use sqlite3_error_offset if compatible | 2022-04-02 | 1 | -1/+8 | ||
| | | ||||||
| * | add error offsets to DetailedError | 2022-04-02 | 1 | -3/+9 | ||
| | | | | | API introduced on 3.38.0 | |||||
| * | fix sentinel | 2022-02-05 | 1 | -19/+23 | ||
| | | ||||||
| * | add a test for a crash found by fuzzing | 2021-12-31 | 1 | -1/+5 | ||
| | | ||||||
| * | fix savepoint InitError | 2021-12-31 | 1 | -0/+3 | ||
| | | ||||||
| * | statement: return an error if using exec() returns data | 2021-12-31 | 1 | -0/+1 | ||
| | | ||||||