summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 2bc8a67..703294f 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -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;