summaryrefslogtreecommitdiff
path: root/sqlite.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-12-31fix tests with the new errorsGravatar Vincent Rischmann1-2/+2
2020-12-31add proper error typesGravatar Vincent Rischmann1-8/+7
* Add SQLiteError and various SQLiteExtendedXYZError * Replace old errors with the SQLite ones where appropriate Fixes #8
2020-12-30add pragmaAllocGravatar Vincent Rischmann1-21/+43
2020-12-30add more testsGravatar Vincent Rischmann1-28/+83
2020-12-30introduce *Alloc methodsGravatar Vincent Rischmann1-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.
2020-12-30document OpenFlagsGravatar Vincent Rischmann1-0/+1
2020-12-30add more tests for failuresGravatar Vincent Rischmann1-0/+21
* one for Db.init * one for Db.prepare
2020-12-30remove loggingGravatar Vincent Rischmann1-3/+0
2020-12-30add Error, DetailedErrorGravatar Vincent Rischmann1-0/+33
2020-12-30document ThreadingMode and InitOptionsGravatar Vincent Rischmann1-1/+19
2020-12-30remove the allocator from Db and Db.initGravatar Vincent Rischmann1-21/+18
2020-12-29add initOptions for testingGravatar Vincent Rischmann1-14/+24
2020-12-29add InitOptionsGravatar Vincent Rischmann1-15/+29
2020-12-29add the threading modeGravatar Vincent Rischmann1-0/+14
2020-12-28rename is_ci to in_memoryGravatar Vincent Rischmann1-2/+2
2020-12-27fix some typosGravatar Vincent Rischmann1-2/+2
2020-12-27readBytes can simply take the allocator instead of the optionsGravatar Vincent Rischmann1-16/+16
2020-12-27don't pass the options to readInt, readFloat, readBoolGravatar Vincent Rischmann1-9/+9
2020-12-27require the callers to provide a 0-terminated stringGravatar Vincent Rischmann1-6/+2
2020-12-21add the Db.one() convenience functionGravatar Vincent Rischmann1-0/+27
2020-12-21implement reading of sentineled slicesGravatar Vincent Rischmann1-25/+50
2020-12-21add the readPointer methodGravatar Vincent Rischmann1-3/+24
2020-12-21add commentsGravatar Vincent Rischmann1-0/+3
2020-12-21add commentsGravatar Vincent Rischmann1-2/+42
2020-12-21make readBytes read Blob, Text as well as []const u8, []u8Gravatar Vincent Rischmann1-38/+42
2020-12-21make readArray return an array instead of taking a pointerGravatar Vincent Rischmann1-7/+7
2020-12-21add a weight real column to the test tableGravatar Vincent Rischmann1-14/+18
2020-12-21make readInt, readFloat, readBool return a specific type and columnGravatar Vincent Rischmann1-17/+14
2020-12-21reorder the arguments of readBytesGravatar Vincent Rischmann1-7/+7
2020-12-21make readBytes return a value instead of taking a pointerGravatar Vincent Rischmann1-19/+13
2020-12-21actually check the value of is_idGravatar Vincent Rischmann1-0/+1
2020-12-21allow reading a bool fieldGravatar Vincent Rischmann1-1/+6
2020-12-21allow bool bind parameters and reading bool valuesGravatar Vincent Rischmann1-0/+47
2020-12-21pass the column in readArrayGravatar Vincent Rischmann1-7/+12
also test that we can read an array field
2020-12-21add reading a field into an arrayGravatar Vincent Rischmann1-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.
2020-11-26replace span() with the field itemsGravatar Vincent Rischmann1-3/+3
2020-11-26return the slice from toOwnedSliceGravatar Vincent Rischmann1-1/+1
2020-11-13allow reading into a void value (essentially discarding the column)Gravatar Vincent Rischmann1-0/+16
2020-11-13fix the pragma test when using -Dis_ciGravatar Vincent Rischmann1-8/+19
2020-11-13add Db.pragmaGravatar Vincent Rischmann1-0/+51
2020-11-13allow reading a single string in one() and all()Gravatar Vincent Rischmann1-154/+234
Also refactor the tests.
2020-11-12add documentation for the iteratorGravatar Vincent Rischmann1-0/+41
2020-11-12add an iteratorGravatar Vincent Rischmann1-148/+211
An iterator can be used to process rows one by one, without loading everything into an array list first.
2020-11-12allow reading a single float valueGravatar Vincent Rischmann1-7/+37
2020-11-12add Statement.reset and test itGravatar Vincent Rischmann1-27/+88
2020-11-11allow untyped bind markersGravatar Vincent Rischmann1-2/+6
2020-11-11refactor readBytesGravatar Vincent Rischmann1-17/+11
2020-11-11add readBytes and allow reading into a Text or Blob structGravatar Vincent Rischmann1-14/+80
2020-11-11add types to bind markers and check them at comptimeGravatar Vincent Rischmann1-45/+31
2020-10-30fix compileError messageGravatar Vincent Rischmann1-1/+1