def psql ( sql , show = True ) : out = postgres ( 'psql -c "%s"' % sql ) if show : print_command ( sql ) return out
python postgres print query results
Runs SQL against the project s database .
def psql(sql, show=True):
    """
    Runs SQL against the project's database.
    """
    out = postgres('psql -c "%s"' % sql)
    if show:
        print_command(sql)
    return out