diff options
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1499,7 +1499,7 @@ pub const DynamicStatement = struct { | |||
| 1499 | /// | 1499 | /// |
| 1500 | /// This cannot allocate memory. If you need to read TEXT or BLOB columns you need to use arrays or alternatively call `oneAlloc`. | 1500 | /// This cannot allocate memory. If you need to read TEXT or BLOB columns you need to use arrays or alternatively call `oneAlloc`. |
| 1501 | pub fn one(self: *Self, comptime Type: type, options: QueryOptions, values: anytype) !?Type { | 1501 | pub fn one(self: *Self, comptime Type: type, options: QueryOptions, values: anytype) !?Type { |
| 1502 | var iter = try self.iterator(Type, .{}, values); | 1502 | var iter = try self.iterator(Type, values); |
| 1503 | 1503 | ||
| 1504 | const row = (try iter.next(options)) orelse return null; | 1504 | const row = (try iter.next(options)) orelse return null; |
| 1505 | return row; | 1505 | return row; |