actio_python_utils.database_functions.savepoint_wrapper

actio_python_utils.database_functions.savepoint_wrapper(method)[source]

Wraps a psycopg2 cursor’s method to use a savepoint

Parameters:

method (Callable[[cursor, ...], Any]) – The method to wrap

Return type:

Callable[[cursor, ...], Any]

Returns:

The wrapped method