
    u	j\                     &    d Z ddlZddlZddlZd Zy)z
Database connection for the AI Cats Python services.

Uses psycopg2 with connection credentials read exclusively from environment
variables (via config.py / python-dotenv). No credentials are hardcoded.
    Nc                      t        j                  t        j                  t        j                  t        j
                  t        j                  t        j                  t         j                  j                        S )z;Return a new psycopg2 connection using env-var credentials.)hostportdbnameuserpasswordcursor_factory)
psycopg2connectconfigDB_HOSTDB_PORTDB_NAMEDB_USERDB_PASSWORDextrasRealDictCursor     //var/www/html/ai_cats/python/models/database.pyget_connectionr      sG    ^^^^~~^^##55 r   )__doc__r
   psycopg2.extrasr   r   r   r   r   <module>r      s      	r   