diff options
| author | 2022-08-05 21:14:27 +0200 | |
|---|---|---|
| committer | 2022-08-05 21:15:49 +0200 | |
| commit | 2b3b035e36f0de6cb6fc839ba0fb9bed533ba597 (patch) | |
| tree | e161eceea99f77990a4c8dc5bc1f3f963c7c057a /query.zig | |
| parent | move DetailedError, do some cleanup (diff) | |
| download | zig-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 '')
| -rw-r--r-- | query.zig | 4 |
1 files changed, 1 insertions, 3 deletions
| @@ -3,9 +3,7 @@ const mem = std.mem; | |||
| 3 | const testing = std.testing; | 3 | const testing = std.testing; |
| 4 | 4 | ||
| 5 | const Blob = @import("sqlite.zig").Blob; | 5 | const Blob = @import("sqlite.zig").Blob; |
| 6 | 6 | const Text = @import("sqlite.zig").Text; | |
| 7 | /// Text is used to represent a SQLite TEXT value when binding a parameter or reading a column. | ||
| 8 | pub const Text = struct { data: []const u8 }; | ||
| 9 | 7 | ||
| 10 | const BindMarker = struct { | 8 | const 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 |