From b357fb1a6d799bea07e4e4c3972565d87c579340 Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 15 May 2022 02:19:16 -0300 Subject: Make ParsedQuery a generic on query length --- sqlite.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sqlite.zig') diff --git a/sqlite.zig b/sqlite.zig index a057064..cb9ae35 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -1506,7 +1506,7 @@ pub fn Iterator(comptime Type: type) type { /// pub fn StatementType(comptime opts: StatementOptions, comptime query: []const u8) type { @setEvalBranchQuota(100000); - return Statement(opts, ParsedQuery.from(query)); + return Statement(opts, ParsedQuery(query)); } pub const StatementOptions = struct {}; @@ -2002,7 +2002,7 @@ pub const DynamicStatement = struct { /// /// Look at each function for more complete documentation. /// -pub fn Statement(comptime opts: StatementOptions, comptime query: ParsedQuery) type { +pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type { _ = opts; return struct { -- cgit v1.2.3