| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | 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 | |
| | | |||||
| * | add a test using untyped bind markers | 2021-12-31 | 1 | -0/+19 | |
| | | |||||
| * | use StatementType | 2021-12-31 | 1 | -4/+2 | |
| | | |||||
| * | fix a panic in Statement.prepare if the query is empty | 2021-12-26 | 1 | -0/+7 | |
| | | | | | | sqlite3_prepare_v2 doesn't return an error code if the input query string is empty or is a comment, instead the statement will be null. | ||||
| * | add tests for crashes found by fuzzing | 2021-12-26 | 1 | -0/+19 | |
| | | |||||
| * | fix readArray when reading zero-length blob | 2021-12-18 | 1 | -8/+17 | |
| | | | | | | sqlite3_column_blob returns a NULL pointer for a zero-length blob, which must be handled correctly. | ||||
| * | add a test binding an empty slice to a text column | 2021-12-18 | 1 | -0/+67 | |
| | | |||||
| * | always deinit the test database | 2021-12-18 | 1 | -0/+30 | |
| | | | | | otherwise using the dbfile option won't work | ||||
| * | rename argument for clarity | 2021-12-18 | 1 | -3/+3 | |
| | | | | | also style consistency; variables should be snake case | ||||
| * | all: replace spanZ with sliceTo | 2021-12-01 | 1 | -8/+12 | |
| | | |||||
| * | all: fix for latest Allocator interface refactor | 2021-12-01 | 1 | -44/+61 | |
| | | |||||
| * | dynamic statement: fix documentation | 2021-11-22 | 1 | -3/+5 | |
| | | |||||
| * | dynamic statement: document bind() | 2021-11-22 | 1 | -0/+33 | |
| | | |||||
| * | dynamic statement: add some tests | 2021-11-22 | 1 | -0/+98 | |
| | | |||||
| * | dynamic statement: fix one() | 2021-11-22 | 1 | -1/+1 | |
| | | |||||
| * | remove smartBind/bindNamedStruct, they're not actually necessary | 2021-11-22 | 1 | -33/+11 | |
| | | |||||
| * | Fixes | 2021-11-22 | 1 | -3/+36 | |
| | | |||||
| * | A handful of tiny fixes. | 2021-11-22 | 1 | -6/+6 | |
| | | |||||
| * | savepoint: always deinit the statements | 2021-11-07 | 1 | -0/+5 | |
| | | |||||
| * | implement savepoint | 2021-10-23 | 1 | -0/+250 | |
| | | |||||
| * | use explicit error sets everywhere | 2021-10-23 | 1 | -11/+25 | |
| | | |||||
| * | sqlite: move to new ParsedQuery and BindMarker | 2021-10-19 | 1 | -13/+9 | |
| | | |||||
| * | use snake case for field names | 2021-10-18 | 1 | -3/+3 | |
| | | |||||
| * | make bindField clearer | 2021-10-18 | 1 | -34/+52 | |
| | | | | | | | | | | | Be less clever with comptime reflection. This has the advantage of making the code a lot clearer, clearly identifying which case are converting an sqlite int result to an error. This also makes it easier to follow the error trace if there is an error while binding a field. | ||||
| * | no need for comptimePrint here | 2021-10-18 | 1 | -1/+1 | |
| | | |||||
| * | improve documentation of DynamicStatement | 2021-10-18 | 1 | -27/+27 | |
| | | |||||
| * | Db.getPragmaQuery: use comptimePrint instead of bufPrint | 2021-10-18 | 1 | -7/+5 | |
| | | |||||
| * | add the StatementType function | 2021-10-13 | 1 | -10/+24 | |
| | | | | | | | | This function returns the type of a statement as would be returned by Db.prepare. Needed to be able to store a statement in a struct. | ||||
| * | sqlite: format code | 2021-10-13 | 1 | -19/+14 | |
| | | |||||
| * | DynamicStatement.translateError: fix typo in name | 2021-10-13 | 1 | -2/+2 | |
| | | |||||
| * | DynamicStatement.bindField: fix incompatible if branches for optionals | 2021-10-13 | 1 | -1/+1 | |
| | | |||||
| * | sqlite: some doc fixes | 2021-10-13 | 1 | -5/+5 | |
| | | |||||
| * | DynamicStatment: introduce original sqlite3 statement. | 2021-10-13 | 1 | -122/+442 | |
| | | |||||
| * | test binding an optional value too | 2021-10-12 | 1 | -1/+3 | |
| | | |||||
| * | fix typo | 2021-10-11 | 1 | -1/+1 | |
| | | |||||
| * | fix pragma code, return value must be explicitly ignored | 2021-10-11 | 1 | -1/+1 | |
| | | |||||
| * | use `try` instead of `catch unreachable` | 2021-10-06 | 1 | -1/+1 | |
| | | |||||
| * | add inserting and reading test for struct BaseType support | 2021-10-06 | 1 | -0/+57 | |
| | | |||||
| * | add BaseType support for structs | 2021-09-23 | 1 | -0/+7 | |
| | | |||||
| * | add iteratorAlloc and execAlloc | 2021-09-23 | 1 | -2/+30 | |
| | | |||||
| * | add options parameter to bind/bindField | 2021-09-23 | 1 | -9/+9 | |
| | | |||||
| * | more minor cleanups | 2021-09-07 | 1 | -10/+4 | |
| | | |||||
| * | Stop using anytype in the public API. | 2021-09-07 | 1 | -32/+52 | |
| | | | | | | | | | | | | | | | | | | | | | | The need for using `options: anytype` in readXYZ functions is so that they can be used both when called by `one`/`next` or `oneAlloc`/`nextAlloc`. In the first case there won't be an allocator member in the tuple, in the latter there will be. But, since the public API takes an explicit allocator argument in `oneAlloc`/`nextAlloc` there's no need to take a `anytype` options in the public API. This commit changes the public API to always use `QueryOptions`. This commit also adds a bunch of explicit comptime checks to validate the options type passed to the readXYZ functions. Especially important is checking the presence of the `allocator` field if the function requires an allocator. Finally, cleanup some stuff and reorder arguments in `readPointer`. | ||||
| * | fix for ziglang/zig#9618 | 2021-09-04 | 1 | -12/+15 | |
| | | |||||
| * | fix the compile error from readArray | 2021-08-31 | 1 | -2/+2 | |
| | | |||||