db/python/connect.py
def dev_config() -> 'DatabaseConfiguration':
        """Dev config for local database with name 'sm_dev'"""
        # consider pulling from env variables
        return DatabaseConfiguration(
            dbname=os.environ.get('SM_DEV_DB_NAME', 'sm_dev'),
            username=os.environ.get('SM_DEV_DB_USER', 'root'),
            password=os.environ.get('SM_DEV_DB_PASSWORD', ''),
            host=os.environ.get('SM_DEV_DB_HOST', '127.0.0.1'),
            port=os.environ.get('SM_DEV_DB_PORT', '3306'),
        )
Dev config for local database with name 'sm_dev
Dev config for local database with name 'sm_dev
Dev config for local database with name ' sm_dev
def dev_config() -> 'DatabaseConfiguration':
        return DatabaseConfiguration(
            dbname=os.environ.get('SM_DEV_DB_NAME', 'sm_dev'),
            username=os.environ.get('SM_DEV_DB_USER', 'root'),
            password=os.environ.get('SM_DEV_DB_PASSWORD', ''),
            host=os.environ.get('SM_DEV_DB_HOST', '127.0.0.1'),
            port=os.environ.get('SM_DEV_DB_PORT', '3306'),
        )
def dev_config ( ) -> 'DatabaseConfiguration' : return DatabaseConfiguration ( dbname = os . environ . get ( 'SM_DEV_DB_NAME' , 'sm_dev' ) , username = os . environ . get ( 'SM_DEV_DB_USER' , 'root' ) , password = os . environ . get ( 'SM_DEV_DB_PASSWORD' , '' ) , host = os . environ . get ( 'SM_DEV_DB_HOST' , '127.0.0.1' ) , port = os . environ . get ( 'SM_DEV_DB_PORT' , '3306' ) , )
Dev config for local database with name 'sm_dev
Dev config for local database with name ' sm_dev
"""Dev config for local database with name 'sm_dev'""" # consider pulling from env variables