src/Soluble/Metadata/Reader/AbstractMetadataReader.php
public function getColumnsMetadata(string $sql): ColumnsMetadata
    {
        if ($this->cache_active) {
            $cache_key = md5($sql);
            if (!array_key_exists($cache_key, static::$metadata_cache)) {
                $md = $this->readColumnsMetadata($sql);
                static::$metadata_cache[$cache_key] = $md;
            }

            return static::$metadata_cache[$cache_key];
        }

        return $this->readColumnsMetadata($sql);
    }
public function getColumnsMetadata(string $sql): ColumnsMetadata
    {
        if ($this->cache_active) {
            $cache_key = md5($sql);
            if (!array_key_exists($cache_key, static::$metadata_cache)) {
                $md = $this->readColumnsMetadata($sql);
                static::$metadata_cache[$cache_key] = $md;
            }

            return static::$metadata_cache[$cache_key];
        }

        return $this->readColumnsMetadata($sql);
    }
public function getColumnsMetadata ( string $ sql ) : ColumnsMetadata { if ( $ this -> cache_active ) { $ cache_key = md5 ( $ sql ) ; if ( ! array_key_exists ( $ cache_key , static :: $ metadata_cache ) ) { $ md = $ this -> readColumnsMetadata ( $ sql ) ; static :: $ metadata_cache [ $ cache_key ] = $ md ; } return static :: $ metadata_cache [ $ cache_key ] ; } return $ this -> readColumnsMetadata ( $ sql ) ; }
Return columns metadata from query.

@throws Exception\UnsupportedTypeException
@throws Exception\AmbiguousColumnException
@throws Exception\InvalidQueryException
Return columns metadata from query .