diff options
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -446,7 +446,7 @@ pub const Db = struct { | |||
| 446 | } | 446 | } |
| 447 | 447 | ||
| 448 | /// prepareWithDiags is like `prepare` but takes an additional options argument. | 448 | /// prepareWithDiags is like `prepare` but takes an additional options argument. |
| 449 | pub fn prepareWithDiags(self: *Self, comptime query: []const u8, options: QueryOptions) !comptime blk: { | 449 | pub fn prepareWithDiags(self: *Self, comptime query: []const u8, options: QueryOptions) !blk: { |
| 450 | @setEvalBranchQuota(100000); | 450 | @setEvalBranchQuota(100000); |
| 451 | break :blk Statement(.{}, ParsedQuery.from(query)); | 451 | break :blk Statement(.{}, ParsedQuery.from(query)); |
| 452 | } { | 452 | } { |
| @@ -469,7 +469,7 @@ pub const Db = struct { | |||
| 469 | /// This is done because we type check the bind parameters when executing the statement later. | 469 | /// This is done because we type check the bind parameters when executing the statement later. |
| 470 | /// | 470 | /// |
| 471 | /// If you want additional error information in case of failures, use `prepareWithDiags`. | 471 | /// If you want additional error information in case of failures, use `prepareWithDiags`. |
| 472 | pub fn prepare(self: *Self, comptime query: []const u8) !comptime blk: { | 472 | pub fn prepare(self: *Self, comptime query: []const u8) !blk: { |
| 473 | @setEvalBranchQuota(100000); | 473 | @setEvalBranchQuota(100000); |
| 474 | break :blk Statement(.{}, ParsedQuery.from(query)); | 474 | break :blk Statement(.{}, ParsedQuery.from(query)); |
| 475 | } { | 475 | } { |