summaryrefslogtreecommitdiff
path: root/query.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2022-08-05 21:14:27 +0200
committerGravatar Vincent Rischmann2022-08-05 21:15:49 +0200
commit2b3b035e36f0de6cb6fc839ba0fb9bed533ba597 (patch)
treee161eceea99f77990a4c8dc5bc1f3f963c7c057a /query.zig
parentmove DetailedError, do some cleanup (diff)
downloadzig-sqlite-2b3b035e36f0de6cb6fc839ba0fb9bed533ba597.tar.gz
zig-sqlite-2b3b035e36f0de6cb6fc839ba0fb9bed533ba597.tar.xz
zig-sqlite-2b3b035e36f0de6cb6fc839ba0fb9bed533ba597.zip
move Text in sqlite.zig
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.
Diffstat (limited to 'query.zig')
-rw-r--r--query.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/query.zig b/query.zig
index a63bd3d..2b9808e 100644
--- a/query.zig
+++ b/query.zig
@@ -3,9 +3,7 @@ const mem = std.mem;
3const testing = std.testing; 3const testing = std.testing;
4 4
5const Blob = @import("sqlite.zig").Blob; 5const Blob = @import("sqlite.zig").Blob;
6 6const Text = @import("sqlite.zig").Text;
7/// Text is used to represent a SQLite TEXT value when binding a parameter or reading a column.
8pub const Text = struct { data: []const u8 };
9 7
10const BindMarker = struct { 8const BindMarker = struct {
11 /// Contains the expected type for a bind parameter which will be checked 9 /// Contains the expected type for a bind parameter which will be checked