Function: sqlite-next
sqlite-next is a function defined in sqlite.c.
Signature
(sqlite-next SET)
Documentation
Return the next result set from SET.
Return nil when the statement has finished executing successfully.
Source Code
// Defined in /usr/src/emacs/src/sqlite.c
{
check_sqlite (set, true);
if (XSQLITE (set)->eof)
return Qnil;
int ret = sqlite3_step (XSQLITE (set)->stmt);
if (ret != SQLITE_ROW && ret != SQLITE_OK && ret != SQLITE_DONE)
xsignal1 (Qsqlite_error, build_string (sqlite3_errmsg (XSQLITE (set)->db)));
if (ret == SQLITE_DONE)
{
XSQLITE (set)->eof = true;
return Qnil;
}
return row_to_value (XSQLITE (set)->stmt);
}