public function tableExists($table_name,$which_connection='')
    {
        /**
          Check whether the definition is in cache
        */
        if (isset($this->structure_cache[$which_connection]) && isset($this->structure_cache[$which_connection][$table_name])) {
            return true;
        }

        $conn = $this->getNamedConnection($which_connection);
        if (!is_object($conn)) {
            return false;
        }
        $cols = $conn->MetaColumns($table_name);
        if ($cols === false) {
            return false;
        }

        return true;
    }
public function tableExists($table_name,$which_connection='')
    {
        /**
          Check whether the definition is in cache
        */
        if (isset($this->structure_cache[$which_connection]) && isset($this->structure_cache[$which_connection][$table_name])) {
            return true;
        }

        $conn = $this->getNamedConnection($which_connection);
        if (!is_object($conn)) {
            return false;
        }
        $cols = $conn->MetaColumns($table_name);
        if ($cols === false) {
            return false;
        }

        return true;
    }
public function tableExists ( $ table_name , $ which_connection = '' ) { /**
          Check whether the definition is in cache
        */ if ( isset ( $ this -> structure_cache [ $ which_connection ] ) && isset ( $ this -> structure_cache [ $ which_connection ] [ $ table_name ] ) ) { return true ; } $ conn = $ this -> getNamedConnection ( $ which_connection ) ; if ( ! is_object ( $ conn ) ) { return false ; } $ cols = $ conn -> MetaColumns ( $ table_name ) ; if ( $ cols === false ) { return false ; } return true ; }
Check whether the given table exists
@param $table_name The table's name
@param which_connection see method close
@return
- True The table exists
- False The table doesn't exist
- -1 Operation not supported for this database type
Check whether the given table exists