From 2b3b035e36f0de6cb6fc839ba0fb9bed533ba597 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Fri, 5 Aug 2022 21:14:27 +0200 Subject: 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. --- query.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'query.zig') 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; const testing = std.testing; const Blob = @import("sqlite.zig").Blob; - -/// Text is used to represent a SQLite TEXT value when binding a parameter or reading a column. -pub const Text = struct { data: []const u8 }; +const Text = @import("sqlite.zig").Text; const BindMarker = struct { /// Contains the expected type for a bind parameter which will be checked -- cgit v1.2.3