Skip to content

Commit ece6dea

Browse files
committed
feat(queries): add execution time (MS) column to queries list
1 parent 4b58809 commit ece6dea

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/queries.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ pub fn list(
195195
r.id.clone(),
196196
color_status(&r.status),
197197
crate::util::format_date(&r.created_at),
198+
r.execution_time_ms
199+
.map(|ms| ms.to_string())
200+
.unwrap_or_else(|| "-".to_string()),
198201
r.row_count
199202
.map(|n| n.to_string())
200203
.unwrap_or_else(|| "-".to_string()),
@@ -204,7 +207,7 @@ pub fn list(
204207
})
205208
.collect();
206209
crate::table::print(
207-
&["ID", "STATUS", "CREATED", "ROWS", "RESULT_ID", "SQL"],
210+
&["ID", "STATUS", "CREATED", "MS", "ROWS", "RESULT_ID", "SQL"],
208211
&rows,
209212
);
210213
}

0 commit comments

Comments
 (0)