MCPcopy Create free account
hub / github.com/PyTables/PyTables / get_current_mark

Method get_current_mark

tables/file.py:2846–2861  ·  view source on GitHub ↗

Get the identifier of the current mark. Returns the identifier of the current mark. This can be used to know the state of a database after an application crash, or to get the identifier of the initial implicit mark after a call to :meth:`File.enable_undo`. T

(self)

Source from the content-addressed store, hash-verified

2844 self.redo(mark)
2845
2846 def get_current_mark(self) -> int:
2847 """Get the identifier of the current mark.
2848
2849 Returns the identifier of the current mark. This can be used
2850 to know the state of a database after an application crash, or to
2851 get the identifier of the initial implicit mark after a call
2852 to :meth:`File.enable_undo`.
2853
2854 This method can only be called when the Undo/Redo mechanism
2855 has been enabled. Otherwise, an UndoRedoError
2856 is raised.
2857
2858 """
2859 self._check_open()
2860 self._check_undo_enabled()
2861 return self._curmark
2862
2863 def _shadow_name(self) -> tuple[Node, str]:
2864 """Compute and return a shadow name.

Callers 4

test08_initialmarkMethod · 0.80
test11_contiguousMethod · 0.80
test12_keepMarkMethod · 0.80

Calls 2

_check_openMethod · 0.95
_check_undo_enabledMethod · 0.95

Tested by 4

test08_initialmarkMethod · 0.64
test11_contiguousMethod · 0.64
test12_keepMarkMethod · 0.64