summaryrefslogtreecommitdiff
path: root/query.zig (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-10-23Reuse field for bindingGravatar IamSanjid1-6/+11
2024-08-29fix for latest zigGravatar Vincent Rischmann1-2/+2
2024-04-14fix for latest zigGravatar Vincent Rischmann1-159/+173
Also some major refactoring around the query parsing state.
2023-12-19query: fix zig fmt errorsGravatar Jari Vetoniemi1-1/+1
2023-12-18query: parse names of bind parametersGravatar Jari Vetoniemi1-1/+19
bind parameter amount should not increase if bind parameter with same name exists.
2023-12-18query: support [] and ` identifiersGravatar Jari Vetoniemi1-2/+2
2023-12-02Update query.zigGravatar Krvopije1-1/+1
std.mem.copy was deprecated
2023-11-21Update to zig 0.12.0-dev.1664+8ca4a5240Gravatar Ed Yu1-2/+2
2023-11-21Update query.zigGravatar Krvopije1-2/+2
2022-12-11fix for latest zigGravatar Vincent Rischmann1-1/+1
2022-12-06fix for stage2Gravatar Vincent Rischmann1-1/+1
2022-09-17fix for latest zigGravatar Vincent Rischmann1-3/+3
2022-08-05move Text in sqlite.zigGravatar Vincent Rischmann1-3/+1
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.
2022-05-17Make ParsedQuery a generic on query lengthGravatar Luna1-161/+168
2022-05-03allow parsing optional types in bind marker typesGravatar Vincent Rischmann1-1/+16
2022-05-02the '_' character is valid in a named bind parameterGravatar Vincent Rischmann1-1/+6
2022-01-02query: improve testsGravatar Vincent Rischmann1-23/+37
2022-01-02query: rework the named bind marker parsingGravatar Vincent Rischmann1-15/+12
2022-01-02query: use snake_case for the states for consistencyGravatar Vincent Rischmann1-18/+18
2022-01-02query: remove identifier from BindMarkerGravatar Vincent Rischmann1-18/+17
2022-01-02query: remove identifier_type from BindMarkerGravatar Vincent Rischmann1-41/+0
2021-12-31fix query parsing when there's a named identifier without a typeGravatar Vincent Rischmann1-0/+1
2021-12-31query: also test the number of bind markersGravatar Vincent Rischmann1-0/+10
2021-12-18improve query parsing to ignore bind markers prefix inside stringsGravatar Vincent Rischmann1-0/+16
Fixes #65
2021-12-18add a test for bind markers inside stringsGravatar Vincent Rischmann1-1/+31
2021-10-23query: use lowercase for enum fieldsGravatar Vincent Rischmann1-9/+12
2021-10-23query: increase eval branch quota for testsGravatar Vincent Rischmann1-0/+1
2021-10-23query: no need to use comptimePrintGravatar Vincent Rischmann1-3/+3
2021-10-23query: use a switch instead of if/else chainsGravatar Vincent Rischmann1-8/+11
2021-10-23document BindMarkerGravatar Vincent Rischmann1-2/+9
2021-10-23rename id_type/IdType for naming consistencyGravatar Vincent Rischmann1-9/+9
2021-10-19query.zig: code formatGravatar thisLight1-25/+19
2021-10-19BindMarker: idType to id_typeGravatar thisLight1-8/+8
2021-10-19BindMarker, ParsedQuery: support BindMarker.idTypeGravatar thisLight1-2/+48
2021-10-19ParsedQuery: support :@$ as bind marker markGravatar thisLight1-18/+17
2021-10-19ParsedQuery: support named parameters.Gravatar thisLight1-18/+115
Besides ParsedQuery, BindMarker have been reworked to fit new need of named parameters.
2021-06-25query: fix new compilation errorsGravatar Vincent Rischmann1-9/+3
2021-05-19all: update for latest zigGravatar Vincent Rischmann1-3/+2
2021-05-09all: fix tests for latest zigGravatar Vincent Rischmann1-4/+4
2021-01-31add incremental i/o on blobGravatar Vincent Rischmann1-2/+1
2021-01-24remove debug print statementsGravatar Vincent Rischmann1-2/+0
2021-01-03convert {} to {s} or {d}Gravatar Vincent Rischmann1-2/+2
2020-12-21allow bool bind parameters and reading bool valuesGravatar Vincent Rischmann1-0/+3
2020-11-26is_signed was replaced with .signednessGravatar Vincent Rischmann1-1/+1
2020-11-11allow untyped bind markersGravatar Vincent Rischmann1-9/+31
2020-11-11add types to bind markers and check them at comptimeGravatar Vincent Rischmann1-0/+190