Get the most recent error code.
- Note:
- This value is not cleared by any API calls except clear_db_error. To check for an error in any of a series of calls, first call clear_db_error, then call each API function, and finally use get_db_error to check the result.
- Returns:
- the last error code that was set.
- See also:
- clear_db_error