summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sqlite.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite.zig b/sqlite.zig
index fe53b1f..7f98c08 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -1924,7 +1924,7 @@ pub const DynamicStatement = struct {
1924 /// 1924 ///
1925 /// Note that this allocates all rows into a single slice: if you read a lot of data this can use a lot of memory. 1925 /// Note that this allocates all rows into a single slice: if you read a lot of data this can use a lot of memory.
1926 pub fn all(self: *Self, comptime Type: type, allocator: mem.Allocator, options: QueryOptions, values: anytype) ![]Type { 1926 pub fn all(self: *Self, comptime Type: type, allocator: mem.Allocator, options: QueryOptions, values: anytype) ![]Type {
1927 var iter = try self.iterator(Type, values); 1927 var iter = try self.iteratorAlloc(Type, allocator, values);
1928 1928
1929 var rows = std.ArrayList(Type).init(allocator); 1929 var rows = std.ArrayList(Type).init(allocator);
1930 while (try iter.nextAlloc(allocator, options)) |row| { 1930 while (try iter.nextAlloc(allocator, options)) |row| {