diff options
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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| { |