l.s.d.__init__ : module documentation

Part of lp.services.database

The lp.services.database package.
Function activity_cols Adapt pg_stat_activity column names for the current DB server.
Function retry_transaction Decorator used to retry database transaction failures.
Function read_transaction Decorator used to run the function inside a read only transaction.
Function write_transaction Decorator used to run the function inside a write transaction.
def activity_cols(cur):
Adapt pg_stat_activity column names for the current DB server.
def retry_transaction(func):
Decorator used to retry database transaction failures.

The function being decorated should not have side effects outside of the transaction.

def read_transaction(func):
Decorator used to run the function inside a read only transaction.

The transaction will be aborted on successful completion of the function. The transaction will be retried if appropriate.

def write_transaction(func):
Decorator used to run the function inside a write transaction.

The transaction will be committed on successful completion of the function, and aborted on failure. The transaction will be retried if appropriate.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.