Skip to content

Commit 782a5e0

Browse files
committed
feat(queries): show full result_id in queries list table
1 parent 6d55e9d commit 782a5e0

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/queries.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,19 +198,13 @@ pub fn list(
198198
r.row_count
199199
.map(|n| n.to_string())
200200
.unwrap_or_else(|| "-".to_string()),
201-
r.result_id
202-
.as_deref()
203-
.map(|id| {
204-
let prefix: String = id.chars().take(8).collect();
205-
format!("{prefix}…")
206-
})
207-
.unwrap_or_else(|| "-".to_string()),
201+
r.result_id.as_deref().unwrap_or("-").to_string(),
208202
truncate_sql(&r.sql_text, 40),
209203
]
210204
})
211205
.collect();
212206
crate::table::print(
213-
&["ID", "STATUS", "CREATED", "ROWS", "RESULT", "SQL"],
207+
&["ID", "STATUS", "CREATED", "ROWS", "RESULT_ID", "SQL"],
214208
&rows,
215209
);
216210
}

0 commit comments

Comments
 (0)