MCPcopy
hub / github.com/psycopg/psycopg / commit

Method commit

psycopg/psycopg/connection_async.py:329–332  ·  view source on GitHub ↗

Commit any pending transaction to the database.

(self)

Source from the content-addressed store, hash-verified

327 raise ex.with_traceback(None)
328
329 async def commit(self) -> None:
330 """Commit any pending transaction to the database."""
331 async with self.lock:
332 await self.wait(self._commit_gen())
333
334 async def rollback(self) -> None:
335 """Roll back to the start of any pending transaction."""

Callers 1

__aexit__Method · 0.95

Calls 2

waitMethod · 0.95
_commit_genMethod · 0.45

Tested by

no test coverage detected