src/Neevo/Result.php
public function detectTypes(){
		$table = $this->getTable();
		$this->performed || $this->run();

		// Try fetch from cache
		$types = (array) $this->connection->getCache()->fetch($table . '_detectedTypes');

		if(empty($types)){
			try{
				$types = $this->connection->getDriver()->getColumnTypes($this->resultSet, $table);
			} catch(NeevoException $e){
				return $this;
			}
		}

		foreach((array) $types as $col => $type){
			$this->columnTypes[$col] = $this->resolveType($type);
		}

		$this->connection->getCache()->store($table . '_detectedTypes', $this->columnTypes);
		return $this;
	}
public function detectTypes(){
		$table = $this->getTable();
		$this->performed || $this->run();

		// Try fetch from cache
		$types = (array) $this->connection->getCache()->fetch($table . '_detectedTypes');

		if(empty($types)){
			try{
				$types = $this->connection->getDriver()->getColumnTypes($this->resultSet, $table);
			} catch(NeevoException $e){
				return $this;
			}
		}

		foreach((array) $types as $col => $type){
			$this->columnTypes[$col] = $this->resolveType($type);
		}

		$this->connection->getCache()->store($table . '_detectedTypes', $this->columnTypes);
		return $this;
	}
public function detectTypes ( ) { $ table = $ this -> getTable ( ) ; $ this -> performed || $ this -> run ( ) ; // Try fetch from cache $ types = ( array ) $ this -> connection -> getCache ( ) -> fetch ( $ table . '_detectedTypes' ) ; if ( empty ( $ types ) ) { try { $ types = $ this -> connection -> getDriver ( ) -> getColumnTypes ( $ this -> resultSet , $ table ) ; } catch ( NeevoException $ e ) { return $ this ; } } foreach ( ( array ) $ types as $ col => $ type ) { $ this -> columnTypes [ $ col ] = $ this -> resolveType ( $ type ) ; } $ this -> connection -> getCache ( ) -> store ( $ table . '_detectedTypes' , $ this -> columnTypes ) ; return $ this ; }
Detects column types.
@return Result fluent interface
Detects column types .