# Standard Library
import os

# Third Party Stuff
from sqlalchemy import create_engine


def get_db_connection_url():
    """
    Return database connection URL.
    It's used by sqlalchemy.
    """
    return os.environ["DATABASE_URL"]


def get_db_engine():
    """
    Create the database engine connection
    and attempt to use the database mypyramidproject,
    if it doesn't exist, create it, then use it.

    :return: A database engine.
    """
    # get database connection url
    connection_url = get_db_connection_url()

    # Create engine from connection url
    engine = create_engine(connection_url)

    return engine

7f1e5d17096b4a9b2ab71ca2263a1cae23bfa2a9
<mask token>

<mask token>


def get_db_connection_url():
    """
    Return database connection URL.
    It's used by sqlalchemy.
    """
    return os.environ['DATABASE_URL']


<mask token>

<mask token>


def get_db_connection_url():
    """
    Return database connection URL.
    It's used by sqlalchemy.
    """
    return os.environ['DATABASE_URL']


def get_db_engine():
    """
    Create the database engine connection
    and attempt to use the database mypyramidproject,
    if it doesn't exist, create it, then use it.

    :return: A database engine.
    """
    connection_url = get_db_connection_url()
    engine = create_engine(connection_url)
    return engine

import os
from sqlalchemy import create_engine


def get_db_connection_url():
    """
    Return database connection URL.
    It's used by sqlalchemy.
    """
    return os.environ['DATABASE_URL']


def get_db_engine():
    """
    Create the database engine connection
    and attempt to use the database mypyramidproject,
    if it doesn't exist, create it, then use it.

    :return: A database engine.
    """
    connection_url = get_db_connection_url()
    engine = create_engine(connection_url)
    return engine

# Standard Library
import os

# Third Party Stuff
from sqlalchemy import create_engine


def get_db_connection_url():
    """
    Return database connection URL.
    It's used by sqlalchemy.
    """
    return os.environ["DATABASE_URL"]


def get_db_engine():
    """
    Create the database engine connection
    and attempt to use the database mypyramidproject,
    if it doesn't exist, create it, then use it.

    :return: A database engine.
    """
    # get database connection url
    connection_url = get_db_connection_url()

    # Create engine from connection url
    engine = create_engine(connection_url)

    return engine
