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