Phpmig\Adapter\PDO\SqlPgsql::hasSchema PHP Method

hasSchema() public method

Is the schema ready?
public hasSchema ( ) : boolean
return boolean
    public function hasSchema()
    {
        $tables = $this->connection->query("SELECT table_name FROM information_schema.tables WHERE table_schema = '{$this->schemaName}';");
        while ($table = $tables->fetchColumn()) {
            if ($table == $this->tableName) {
                return true;
            }
        }
        return false;
    }