INNER CODE UNIT · Python
rollback
ArcadeData/arcadedb · bindings/python/src/arcadedb_embedded/core.py:198
def rollback(self):
"""Rollback the current transaction."""
self._check_not_closed()
try:
self._java_db.rollback()
except Exception as e:
raise ArcadeDBError(f"Failed to rollback transaction: {e}") from e
def transaction(self) -> TransactionContext:
"""Create a transaction context manager."""
return TransactionContext(self)
def new_vertex(self, type_name: str) -> Vertex:
"""Create a new vertex."""
self._check_not_closed()
try:
return Vertex(self._java_db.newVertex(type_name))
except Exception as e: