summaryrefslogtreecommitdiff
path: root/sqlite.zig (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* allow binding a pointerGravatar Vincent Rischmann2021-01-021-0/+1
|
* add a test that binds a string literalGravatar Vincent Rischmann2021-01-021-0/+20
|
* add bindFieldGravatar Vincent Rischmann2021-01-021-24/+31
|
* fix the comment on Stmt.one and Stmt.allGravatar Vincent Rischmann2021-01-021-3/+1
|
* fix compile errorGravatar Vincent Rischmann2021-01-011-1/+1
|
* check the weight field tooGravatar Vincent Rischmann2021-01-011-0/+1
|
* fix tests with the new errorsGravatar Vincent Rischmann2020-12-311-2/+2
|
* add proper error typesGravatar Vincent Rischmann2020-12-311-8/+7
| | | | | | | * Add SQLiteError and various SQLiteExtendedXYZError * Replace old errors with the SQLite ones where appropriate Fixes #8
* add pragmaAllocGravatar Vincent Rischmann2020-12-301-21/+43
|
* add more testsGravatar Vincent Rischmann2020-12-301-28/+83
|
* introduce *Alloc methodsGravatar Vincent Rischmann2020-12-301-48/+109
| | | | | | | | | | Stmt.oneAlloc, Db.oneAlloc and Iterator.nextAlloc do the same thing as Stmt.one, Db.one, Iterator.next respectively but they can allocate memory. This is useful when reading TEXT or BLOB columns because if you can't allocate memory the only way to read these types is with an array which means you must have an idea of the maximum size of the column.
* document OpenFlagsGravatar Vincent Rischmann2020-12-301-0/+1
|
* add more tests for failuresGravatar Vincent Rischmann2020-12-301-0/+21
| | | | | * one for Db.init * one for Db.prepare
* remove loggingGravatar Vincent Rischmann2020-12-301-3/+0
|
* add Error, DetailedErrorGravatar Vincent Rischmann2020-12-301-0/+33
|
* document ThreadingMode and InitOptionsGravatar Vincent Rischmann2020-12-301-1/+19
|
* remove the allocator from Db and Db.initGravatar Vincent Rischmann2020-12-301-21/+18
|
* add initOptions for testingGravatar Vincent Rischmann2020-12-291-14/+24
|
* add InitOptionsGravatar Vincent Rischmann2020-12-291-15/+29
|
* add the threading modeGravatar Vincent Rischmann2020-12-291-0/+14
|
* rename is_ci to in_memoryGravatar Vincent Rischmann2020-12-281-2/+2
|
* fix some typosGravatar Vincent Rischmann2020-12-271-2/+2
|
* readBytes can simply take the allocator instead of the optionsGravatar Vincent Rischmann2020-12-271-16/+16
|
* don't pass the options to readInt, readFloat, readBoolGravatar Vincent Rischmann2020-12-271-9/+9
|
* require the callers to provide a 0-terminated stringGravatar Vincent Rischmann2020-12-271-6/+2
|
* add the Db.one() convenience functionGravatar Vincent Rischmann2020-12-211-0/+27
|
* implement reading of sentineled slicesGravatar Vincent Rischmann2020-12-211-25/+50
|
* add the readPointer methodGravatar Vincent Rischmann2020-12-211-3/+24
|
* add commentsGravatar Vincent Rischmann2020-12-211-0/+3
|
* add commentsGravatar Vincent Rischmann2020-12-211-2/+42
|
* make readBytes read Blob, Text as well as []const u8, []u8Gravatar Vincent Rischmann2020-12-211-38/+42
|
* make readArray return an array instead of taking a pointerGravatar Vincent Rischmann2020-12-211-7/+7
|
* add a weight real column to the test tableGravatar Vincent Rischmann2020-12-211-14/+18
|
* make readInt, readFloat, readBool return a specific type and columnGravatar Vincent Rischmann2020-12-211-17/+14
|
* reorder the arguments of readBytesGravatar Vincent Rischmann2020-12-211-7/+7
|
* make readBytes return a value instead of taking a pointerGravatar Vincent Rischmann2020-12-211-19/+13
|
* actually check the value of is_idGravatar Vincent Rischmann2020-12-211-0/+1
|
* allow reading a bool fieldGravatar Vincent Rischmann2020-12-211-1/+6
|
* allow bool bind parameters and reading bool valuesGravatar Vincent Rischmann2020-12-211-0/+47
|
* pass the column in readArrayGravatar Vincent Rischmann2020-12-211-7/+12
| | | | also test that we can read an array field
* add reading a field into an arrayGravatar Vincent Rischmann2020-12-211-13/+52
| | | | | | We require having a sentineled array because otherwise we have no way of communicating to the caller the actual length of the data we put into the array.
* replace span() with the field itemsGravatar Vincent Rischmann2020-11-261-3/+3
|
* return the slice from toOwnedSliceGravatar Vincent Rischmann2020-11-261-1/+1
|
* allow reading into a void value (essentially discarding the column)Gravatar Vincent Rischmann2020-11-131-0/+16
|
* fix the pragma test when using -Dis_ciGravatar Vincent Rischmann2020-11-131-8/+19
|
* add Db.pragmaGravatar Vincent Rischmann2020-11-131-0/+51
|
* allow reading a single string in one() and all()Gravatar Vincent Rischmann2020-11-131-154/+234
| | | | Also refactor the tests.
* add documentation for the iteratorGravatar Vincent Rischmann2020-11-121-0/+41
|
* add an iteratorGravatar Vincent Rischmann2020-11-121-148/+211
| | | | | An iterator can be used to process rows one by one, without loading everything into an array list first.
* allow reading a single float valueGravatar Vincent Rischmann2020-11-121-7/+37
|