mg_session_code

Return codes for mg_session_status.

Values

ValueMeaning
MG_SESSION_READY0

Marks a mg_session ready to execute a new query using mg_session_run.

MG_SESSION_EXECUTING1

Marks a mg_session which is currently executing a query. Results can be pulled using mg_session_pull.

MG_SESSION_BAD2

Marks a bad mg_session which cannot be used to execute queries and can only be destroyed.

MG_SESSION_FETCHING3

Marks a mg_session which is currently fetching result of a query. Results can be fetched using mg_session_fetch.

Meta