mirror of
https://github.com/sbrow/envr.git
synced 2026-06-27 18:48:33 -04:00
wip: Restore db from file.
This commit is contained in:
@@ -2257,7 +2257,7 @@ pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type
|
||||
pub fn all(self: *Self, comptime Type: type, allocator: mem.Allocator, options: QueryOptions, values: anytype) ![]Type {
|
||||
var iter = try self.iteratorAlloc(Type, allocator, values);
|
||||
|
||||
var rows: std.ArrayList(Type) = .{};
|
||||
var rows: std.ArrayList(Type) = .empty;
|
||||
while (try iter.nextAlloc(allocator, options)) |row| {
|
||||
try rows.append(allocator, row);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user