MCPcopy
hub / github.com/psycopg/psycopg / _commit_gen

Method _commit_gen

psycopg/psycopg/transaction.py:133–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

131 return False
132
133 def _commit_gen(self) -> PQGen[None]:
134 ex = self._pop_savepoint("commit")
135 self.status = self.Status.COMMITTED
136 if ex:
137 raise ex
138
139 for command in self._get_commit_commands():
140 yield from self._conn._exec_command(command)
141
142 def _rollback_gen(self, exc_val: BaseException | None) -> PQGen[bool]:
143 if isinstance(exc_val, Rollback):

Callers 3

_exit_genMethod · 0.95
commitMethod · 0.45
commitMethod · 0.45

Calls 3

_pop_savepointMethod · 0.95
_get_commit_commandsMethod · 0.95
_exec_commandMethod · 0.80

Tested by

no test coverage detected