Metadata-Version: 1.0
Name: psycopg2-contextmanager
Version: 1.0.2
Summary: Minimal psycopg2 wrapper for easier interfacing with databases
Home-page: https://www.gridsmart.com/
Author: Devon Campbell
Author-email: devon.campbell@gridsmart.com
License: MIT
Description-Content-Type: UNKNOWN
Description: Installation
        ============
        
        Run ``pip install psycopg2-contextmanager``
        
        Usage
        =====
        
        ::
        
            from psycopg2_contextmanager import database_connection
        
            with database_connection(<database_connection_string>) as cursor:
                cursor.execute(<query>)
        
        Commits are handled automatically. If the query fails, the package will log the exception along with the line ``Unable to run query`` and re-raise it.
        
Platform: UNKNOWN
