actio_python_utils.database_functions¶
Database-related functionality.
Functions
|
Return a connection to the specified PostgreSQL database |
|
Returns a dict of arguments to log in with psycopg2. |
|
Locates the PostgreSQL login credentials given a service name. |
Replaces values in the mapping with those in global_mapping when the value is a str and it is a key in the global mapping |
|
|
Creates a context manager to create a savepoint upon entering, rollback if an error occurs, and release upon exiting |
|
Wraps a psycopg2 cursor's method to use a savepoint |
|
Split a possibly schema qualified table name into its schema and table names |
Classes
|
Creates a psycopg2 database connection with the specified parameters and acts as a context manager. |
|
Wraps |
|
Wraps |