diff options
| author | 2022-05-15 02:19:16 -0300 | |
|---|---|---|
| committer | 2022-05-17 20:46:30 +0200 | |
| commit | b357fb1a6d799bea07e4e4c3972565d87c579340 (patch) | |
| tree | aa3facd2cff754a99f4ad89413a58be1b8ecce3b /sqlite.zig | |
| parent | Make errorFromResultCode public (diff) | |
| download | zig-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.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1506,7 +1506,7 @@ pub fn Iterator(comptime Type: type) type { | |||
| 1506 | /// | 1506 | /// |
| 1507 | pub fn StatementType(comptime opts: StatementOptions, comptime query: []const u8) type { | 1507 | pub 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 | ||
| 1512 | pub const StatementOptions = struct {}; | 1512 | pub 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 | /// |
| 2005 | pub fn Statement(comptime opts: StatementOptions, comptime query: ParsedQuery) type { | 2005 | pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type { |
| 2006 | _ = opts; | 2006 | _ = opts; |
| 2007 | 2007 | ||
| 2008 | return struct { | 2008 | return struct { |