sqlload 0.52.0

SQL data loading tooling.
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Describe a run log record that cannot be used.

use crate::run_log::models::UnreadableRecord;

/// `  <time>  <run id>  unreadable: <reason>`, for `sqlload logged-state show`.
pub fn unreadable_line(record: &UnreadableRecord) -> String {
    format!(
        "  {}  {}  unreadable: {}",
        record.recorded_at.as_deref().unwrap_or("(no time)"),
        record.run_id.as_deref().unwrap_or("(no run id)"),
        record.reason
    )
}