SqlTraceTable
pg_proxy / sql_statements records as a DataTable: time, op, tables, SQL, duration, rows and error. Statements that differ only by their values share a repeatKey and collapse into one row with a count badge and their total duration; the switch above the table shows each execution instead.
Import
Section titled “Import”import { SqlTraceTable } from "@flanksource/clicky-ui/data";The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.
| Prop | Type | Default | Description |
|---|---|---|---|
className |
string |
— | Classes applied to the table root. |
emptyLabel |
string |
No SQL statements recorded |
Shown when there are no statements. |
groupRepeated |
boolean |
true |
Start with statements sharing a `repeatKey` collapsed into one counted row. Defaults to true. |
rows* |
SqlStatementRow[] |
— | `pg_proxy` / `sql_statements` trace records. |