Nette\Database\Drivers\SqlsrvDriver::getTables PHP Method

getTables() public method

Returns list of tables.
public getTables ( )
    public function getTables()
    {
        $tables = [];
        foreach ($this->connection->query("\n\t\t\tSELECT\n\t\t\t\tname,\n\t\t\t\tCASE type\n\t\t\t\t\tWHEN 'U' THEN 0\n\t\t\t\t\tWHEN 'V' THEN 1\n\t\t\t\tEND AS [view]\n\t\t\tFROM\n\t\t\t\tsys.objects\n\t\t\tWHERE\n\t\t\t\ttype IN ('U', 'V')\n\t\t") as $row) {
            $tables[] = ['name' => $row->name, 'view' => (bool) $row->view];
        }
        return $tables;
    }