summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Luna2022-05-15 02:19:16 -0300
committerGravatar Vincent Rischmann2022-05-17 20:46:30 +0200
commitb357fb1a6d799bea07e4e4c3972565d87c579340 (patch)
treeaa3facd2cff754a99f4ad89413a58be1b8ecce3b /sqlite.zig
parentMake errorFromResultCode public (diff)
downloadzig-sqlite-b357fb1a6d799bea07e4e4c3972565d87c579340.tar.gz
zig-sqlite-b357fb1a6d799bea07e4e4c3972565d87c579340.tar.xz
zig-sqlite-b357fb1a6d799bea07e4e4c3972565d87c579340.zip
Make ParsedQuery a generic on query length
Diffstat (limited to '')
-rw-r--r--sqlite.zig4
1 files changed, 2 insertions, 2 deletions
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 {
1506/// 1506///
1507pub fn StatementType(comptime opts: StatementOptions, comptime query: []const u8) type { 1507pub fn StatementType(comptime opts: StatementOptions, comptime query: []const u8) type {
1508 @setEvalBranchQuota(100000); 1508 @setEvalBranchQuota(100000);
1509 return Statement(opts, ParsedQuery.from(query)); 1509 return Statement(opts, ParsedQuery(query));
1510} 1510}
1511 1511
1512pub const StatementOptions = struct {}; 1512pub const StatementOptions = struct {};
@@ -2002,7 +2002,7 @@ pub const DynamicStatement = struct {
2002/// 2002///
2003/// Look at each function for more complete documentation. 2003/// Look at each function for more complete documentation.
2004/// 2004///
2005pub fn Statement(comptime opts: StatementOptions, comptime query: ParsedQuery) type { 2005pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type {
2006 _ = opts; 2006 _ = opts;
2007 2007
2008 return struct { 2008 return struct {