zendframework / zend-db

Db component from Zend Framework
BSD 3-Clause "New" or "Revised" License
101 stars 122 forks source link

Reading data from profiler #181

Open vaclavvanik opened 8 years ago

vaclavvanik commented 8 years ago

Now exists ProfilerInterface which has ability to collect data.

I think there should exist ReaderInterface which would provide way to read data. Eg:

<?php

namespace Zend\Db\Adapter\Profiler;

interface ReaderInterface
{
    /**
     * @return array|null
     */
    public function getLastProfile();

    /**
     * @return array
     */
    public function getProfiles();
}

And finally Zend\Db\Adapter\Profiler\Profiler will implement this interface.

Thoughts?

michalbundyra commented 4 years ago

This repository has been closed and moved to laminas/laminas-db; a new issue has been opened at https://github.com/laminas/laminas-db/issues/91.