sosedoff / pgweb

Cross-platform client for PostgreSQL databases
https://sosedoff.github.io/pgweb
MIT License
8.63k stars 732 forks source link

Add query execution stats to api endpoint #629

Closed sosedoff closed 1 year ago

sosedoff commented 1 year ago

New response structure would include a new field:

{
  "columns": [],
  "rows": [],
  "stats": {
    "columns_count": 3,
    "rows_count": 100,
    "rows_affected": 0,
    "query_start_time": "2022-12-25T19:06:55.893384Z",
    "query_finish_time": "2022-12-25T19:06:56.828875Z",
    "query_duration_ms": 935
  }
}