INNER CODE UNIT · Python
java_result
ArcadeData/arcadedb · bindings/python/src/arcadedb_embedded/core.py:120
java_result = self._java_db.command(language, command, *converted_args)
else:
java_result = self._java_db.command(language, command)
if java_result is not None:
return ResultSet(java_result)
return None
except Exception as e:
raise ArcadeDBError(f"Command failed: {e}") from e
def run_in_transaction(self, fn, retries: int = 12, backoff_s: float = 0.005):
"""
Execute a callable inside a transaction with automatic retry on
concurrent-modification conflicts.
Mirrors the Java API's ``database.transaction(lambda)`` semantics: on
``ConcurrentModificationException`` / ``NeedRetryException`` the
transaction is rolled back and ``fn`` is re-executed, with linear