summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2020-12-21 01:54:12 +0100
committerGravatar Vincent Rischmann2020-12-21 01:54:12 +0100
commit57a93f903d62a626b740c34bd84f5d8f498594df (patch)
tree05badf5ab323ca7790581a15b8c100f30099abb0 /sqlite.zig
parentadd comments (diff)
downloadzig-sqlite-57a93f903d62a626b740c34bd84f5d8f498594df.tar.gz
zig-sqlite-57a93f903d62a626b740c34bd84f5d8f498594df.tar.xz
zig-sqlite-57a93f903d62a626b740c34bd84f5d8f498594df.zip
add comments
Diffstat (limited to '')
-rw-r--r--sqlite.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/sqlite.zig b/sqlite.zig
index c9b7f07..015dd64 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -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) {