DBLogCursor¶
Read Oracle documentation for better understanding.
DBLogCursor Methods¶
-
close
()¶ Discards the log cursor. More info…
DBLogCursor Get Methods¶
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.
-
current
()¶ Return the log record to which the log currently refers. More info…
-
first
()¶ 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.
-
last
()¶ The last record in the log is returned.
This method will return None if the log is empty.
-
next
()¶ 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.
-
prev
()¶ 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.
-
set
(lsn)¶ Retrieve the record specified by the lsn parameter.