mg_session_fetch

Tries to fetch the next query result from mg_session.

The owner of the returned result is mg_session session, and the result is destroyed on next call to mg_session_fetch.

Return: On success, 0 or 1 is returned. Exit code 1 means that a new result row was obtained and stored in result and its contents may be accessed using mg_result_row. Exit code 0 means that there are no more result rows and that the query execution summary was stored in result. Its contents may be accessed using mg_result_summary. On failure, a non-zero exit code is returned.

extern (C)
int
mg_session_fetch

Meta