function GetTables()
    {
        $tables = array();
        $sql = new Sql\Builder($this);
        $tbl = $sql->Table('information_schema.tables', array('TABLE_SCHEMA', 'TABLE_NAME'));
        $cond = $sql->Equals($tbl->Field('TABLE_SCHEMA'), $sql->Value($this->dbName));
        $what = $sql->SelectList($tbl->Field('TABLE_NAME'));

        $select = $sql->Select(true, $what, $tbl, $cond);
        $reader = $this->ExecuteQuery((string) $select);
        while ($reader->Read())
        {
            $tables[] = $reader->ByIndex(0);
        }
        return $tables;
    }
function GetTables()
    {
        $tables = array();
        $sql = new Sql\Builder($this);
        $tbl = $sql->Table('information_schema.tables', array('TABLE_SCHEMA', 'TABLE_NAME'));
        $cond = $sql->Equals($tbl->Field('TABLE_SCHEMA'), $sql->Value($this->dbName));
        $what = $sql->SelectList($tbl->Field('TABLE_NAME'));

        $select = $sql->Select(true, $what, $tbl, $cond);
        $reader = $this->ExecuteQuery((string) $select);
        while ($reader->Read())
        {
            $tables[] = $reader->ByIndex(0);
        }
        return $tables;
    }
function GetTables ( ) { $ tables = array ( ) ; $ sql = new Sql \ Builder ( $ this ) ; $ tbl = $ sql -> Table ( 'information_schema.tables' , array ( 'TABLE_SCHEMA' , 'TABLE_NAME' ) ) ; $ cond = $ sql -> Equals ( $ tbl -> Field ( 'TABLE_SCHEMA' ) , $ sql -> Value ( $ this -> dbName ) ) ; $ what = $ sql -> SelectList ( $ tbl -> Field ( 'TABLE_NAME' ) ) ; $ select = $ sql -> Select ( true , $ what , $ tbl , $ cond ) ; $ reader = $ this -> ExecuteQuery ( ( string ) $ select ) ; while ( $ reader -> Read ( ) ) { $ tables [ ] = $ reader -> ByIndex ( 0 ) ; } return $ tables ; }
Gets all tables in the database
@return string[] Returns all tabe names in the database
Gets all tables in the database