INNER CODE UNIT · Python

transaction

ArcadeData/arcadedb · bindings/python/src/arcadedb_embedded/core.py:206

    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:
            raise ArcadeDBError(
                f"Failed to create vertex of type '{type_name}': {e}"
            ) from e

    def new_document(self, type_name: str) -> Document:
        """Create a new document."""
        self._check_not_closed()
        try:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…