FriendsOfDoctrine / dbal-clickhouse

Doctrine DBAL driver for ClickHouse database
GNU General Public License v3.0
98 stars 80 forks source link

get the statistics from the request #60

Open mikaelBrosset opened 9 months ago

mikaelBrosset commented 9 months ago

Hello, thanks a lot for the library. Is there a way to get the statistics (like elapsed, rows count) and others data from Clickhouse ('meta', 'totals', 'extremes', 'rows_before_limit_at_least', 'statistics')?

Smi2 library provides them in Statement::init(), but I didn't find a way to get them back with the results (ClickhouseStatement::execute()).

https://github.com/FriendsOfDoctrine/dbal-clickhouse/blob/57c4676acfd820306adeb54a76713d240df514f8/src/ClickHouseStatement.php#L128

Thanks a lot