()
| 144 | setError(false); |
| 145 | |
| 146 | const load = async () => { |
| 147 | const { |
| 148 | results: [_set_cluster, _set_replica, records_table], |
| 149 | } = await query(` |
| 150 | SET cluster = ${formatNameForQuery(props.clusterName)}; |
| 151 | SET cluster_replica = ${formatNameForQuery(props.replicaName)}; |
| 152 | SELECT |
| 153 | id, name, batches, records, size, capacity, allocations |
| 154 | FROM |
| 155 | mz_introspection.mz_records_per_dataflow |
| 156 | ${whereFragment} |
| 157 | ORDER BY |
| 158 | records DESC |
| 159 | `); |
| 160 | |
| 161 | setRecords(records_table.rows); |
| 162 | setLoading(false); |
| 163 | }; |
| 164 | load().catch((error) => { |
| 165 | setError(error); |
| 166 | setLoading(false); |
no test coverage detected