From 57a93f903d62a626b740c34bd84f5d8f498594df Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Mon, 21 Dec 2020 01:54:12 +0100 Subject: add comments --- sqlite.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sqlite.zig') 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 { stmt: *c.sqlite3_stmt, + // next scans the next row using the preapred statement. + // + // If it returns null iterating is done. pub fn next(self: *Self, options: anytype) !?Type { var result = c.sqlite3_step(self.stmt); if (result == c.SQLITE_DONE) { -- cgit v1.2.3