def database_exists(self, database):
        return bool(self._execute('psql -tAc "SELECT 1 from pg_database WHERE datname=\'%s\'"' % database, stdout=False))
Checks if a database exists.
dataset/ETHPy150Open python-provy/provy/provy/more/base/database/postgresql.py/BasePostgreSQLRole.database_exists