def _execute_psql(query):
    """
    Executes a PostgreSQL command using the command line interface.
    """
    env.query = query
    run(('cd %(site_path)s; psql -q %(project_name)s -c "%(query)s"') % env)
dataset/ETHPy150Open ireapps/census/censusweb/fabfile.py/_execute_psql/original