diff options
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -180,6 +180,9 @@ pub fn Iterator(comptime Type: type) type { | |||
| 180 | 180 | ||
| 181 | stmt: *c.sqlite3_stmt, | 181 | stmt: *c.sqlite3_stmt, |
| 182 | 182 | ||
| 183 | // next scans the next row using the preapred statement. | ||
| 184 | // | ||
| 185 | // If it returns null iterating is done. | ||
| 183 | pub fn next(self: *Self, options: anytype) !?Type { | 186 | pub fn next(self: *Self, options: anytype) !?Type { |
| 184 | var result = c.sqlite3_step(self.stmt); | 187 | var result = c.sqlite3_step(self.stmt); |
| 185 | if (result == c.SQLITE_DONE) { | 188 | if (result == c.SQLITE_DONE) { |