diff options
| author | 2020-12-21 01:54:12 +0100 | |
|---|---|---|
| committer | 2020-12-21 01:54:12 +0100 | |
| commit | 57a93f903d62a626b740c34bd84f5d8f498594df (patch) | |
| tree | 05badf5ab323ca7790581a15b8c100f30099abb0 | |
| parent | add comments (diff) | |
| download | zig-sqlite-57a93f903d62a626b740c34bd84f5d8f498594df.tar.gz zig-sqlite-57a93f903d62a626b740c34bd84f5d8f498594df.tar.xz zig-sqlite-57a93f903d62a626b740c34bd84f5d8f498594df.zip | |
add comments
Diffstat (limited to '')
| -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) { |