pgcontents/db_utils.py
def _get_name(column_like):
    """
    Get the name from a column-like SQLAlchemy expression.

    Works for Columns and Cast expressions.
    """
    if isinstance(column_like, Column):
        return column_like.name
    elif isinstance(column_like, Cast):
        return column_like.clause.name
def _get_name(column_like):
    if isinstance(column_like, Column):
        return column_like.name
    elif isinstance(column_like, Cast):
        return column_like.clause.name
def _get_name ( column_like ) : if isinstance ( column_like , Column ) : return column_like . name elif isinstance ( column_like , Cast ) : return column_like . clause . name
Get the name from a column-like SQLAlchemy expression.

    Works for Columns and Cast expressions.
Get the name from a column - like SQLAlchemy expression .