Phpmig\Adapter\PDO\SqlPgsql::hasSchema PHP Метод

hasSchema() публичный Метод

Is the schema ready?
public hasSchema ( ) : boolean
Результат 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;
    }