summaryrefslogtreecommitdiff
path: root/sqlite.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-04-24add compile error when passing non-struct to Statement.bindGravatar Luna1-0/+5
2022-04-24add test for runtime slices as DynamicStatement argsGravatar Luna1-0/+22
2022-04-24emit compileError on unsupported pointer sizesGravatar Luna1-4/+8
2022-04-24add support for arrays as runtime bind valuesGravatar Luna1-0/+5
2022-04-24allow slices to be passed as bind parametersGravatar Luna1-9/+22
2022-04-23remove the 'opening' logsGravatar Vincent Rischmann1-4/+0
2022-04-23handle tagged union when binding parametersGravatar Vincent Rischmann1-0/+87
2022-04-21add the Db.execAlloc methodGravatar Vincent Rischmann1-0/+19
2022-04-21remove commentGravatar Vincent Rischmann1-3/+0
2022-04-21cleanup the temporary values correctly for enumsGravatar Vincent Rischmann1-26/+42
2022-04-21check explicitly that bindField is implementedGravatar Vincent Rischmann1-1/+7
2022-04-17fix alignCast in the xStep callback of createAggregateFunctionGravatar Vincent Rischmann1-12/+8
2022-04-17factor the CreateFunctionFlag to c_int codeGravatar Vincent Rischmann1-14/+15
2022-04-17work on supporting aggregate SQL functionsGravatar Vincent Rischmann1-78/+259
2022-04-16document CreateFunctionFlagGravatar Vincent Rischmann1-0/+8
2022-04-16constrain the error set of createScalarFunctionGravatar Vincent Rischmann1-1/+1
2022-04-03add createScalarFunction to create a user-defined scalar functionGravatar Vincent Rischmann1-0/+292
2022-04-02only use sqlite3_error_offset if compatibleGravatar Luna1-1/+8
2022-04-02add error offsets to DetailedErrorGravatar Luna1-3/+9
API introduced on 3.38.0
2022-02-05fix sentinelGravatar Vincent Rischmann1-19/+23
2021-12-31add a test for a crash found by fuzzingGravatar Vincent Rischmann1-1/+5
2021-12-31fix savepoint InitErrorGravatar Vincent Rischmann1-0/+3
2021-12-31statement: return an error if using exec() returns dataGravatar Vincent Rischmann1-0/+1
2021-12-31add a test using untyped bind markersGravatar Vincent Rischmann1-0/+19
2021-12-31use StatementTypeGravatar Vincent Rischmann1-4/+2
2021-12-26fix a panic in Statement.prepare if the query is emptyGravatar Vincent Rischmann1-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.
2021-12-26add tests for crashes found by fuzzingGravatar Vincent Rischmann1-0/+19
2021-12-18fix readArray when reading zero-length blobGravatar Vincent Rischmann1-8/+17
sqlite3_column_blob returns a NULL pointer for a zero-length blob, which must be handled correctly.
2021-12-18add a test binding an empty slice to a text columnGravatar Vincent Rischmann1-0/+67
2021-12-18always deinit the test databaseGravatar Vincent Rischmann1-0/+30
otherwise using the dbfile option won't work
2021-12-18rename argument for clarityGravatar Vincent Rischmann1-3/+3
also style consistency; variables should be snake case
2021-12-01all: replace spanZ with sliceToGravatar Vincent Rischmann1-8/+12
2021-12-01all: fix for latest Allocator interface refactorGravatar Vincent Rischmann1-44/+61
2021-11-22dynamic statement: fix documentationGravatar Vincent Rischmann1-3/+5
2021-11-22dynamic statement: document bind()Gravatar Vincent Rischmann1-0/+33
2021-11-22dynamic statement: add some testsGravatar Vincent Rischmann1-0/+98
2021-11-22dynamic statement: fix one()Gravatar Vincent Rischmann1-1/+1
2021-11-22remove smartBind/bindNamedStruct, they're not actually necessaryGravatar Vincent Rischmann1-33/+11
2021-11-22FixesGravatar Felix "xq" Queißner1-3/+36
2021-11-22A handful of tiny fixes.Gravatar Felix "xq" Queißner1-6/+6
2021-11-07savepoint: always deinit the statementsGravatar Vincent Rischmann1-0/+5
2021-10-23implement savepointGravatar Vincent Rischmann1-0/+250
2021-10-23use explicit error sets everywhereGravatar Vincent Rischmann1-11/+25
2021-10-19sqlite: move to new ParsedQuery and BindMarkerGravatar thisLight1-13/+9
2021-10-18use snake case for field namesGravatar Vincent Rischmann1-3/+3
2021-10-18make bindField clearerGravatar Vincent Rischmann1-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.
2021-10-18no need for comptimePrint hereGravatar Vincent Rischmann1-1/+1
2021-10-18improve documentation of DynamicStatementGravatar Vincent Rischmann1-27/+27
2021-10-18Db.getPragmaQuery: use comptimePrint instead of bufPrintGravatar thisLight1-7/+5
2021-10-13add the StatementType functionGravatar Vincent Rischmann1-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.