These DBLogCursor methods are all wrappers around the get() function in the C API.
These functions returns a tuple. The first element is a LSN tuple, and the second element is a string/bytes with the log data.
If the following methods don’t have log data to return, they return None.
The first record from any of the log files found in the log directory is returned.
This method will return None if the log is empty.
The last record in the log is returned.
This method will return None if the log is empty.
The current log position is advanced to the next record in the log, and that record is returned. If the cursor position was not set previously, it will return the first record in the log.
This method will return None if the log is empty.
The current log position is advanced to the previous record in the log, and that record is returned. If the cursor position was not set previously, it will return the last record in the log.
This method will return None if the log is empty.
Retrieve the record specified by the lsn parameter.