def create_database(func=run):
    func('createuser -s %(project_name)s' % env)
    func('echo "ALTER USER %(project_name)s with password %(database_password)s" | psql postgres' % env)
    func('echo "GRANT ALL PRIVILEGES TO %(project_name)s;" | psql postgres' % env)
    func('createdb -O %(project_name)s %(project_name)s -T template_postgis' % env)
Return ndarray of selected values
dataset/ETHPy150Open ireapps/census/censusweb/fabfile.py/create_database--crossover with--dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/glue.py/glue_2d.__fgetitem__