Skip to content

Commit

Permalink
Update app.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
qbx2 authored Apr 9, 2024
1 parent 3af46e7 commit e8def5b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,7 @@ where
}

if num_rows > 0 {
console::print(format!("table: {:?}", &ptable));
console::print(ptable.to_string());
} else {
console::print("No result");
Expand All @@ -440,6 +441,7 @@ fn convert_row(row: &rusqlite::Row) -> prettytable::Row {
let repr = repr_column(row.column_name(i).ok(), column);
cells.push(prettytable::Cell::new(repr.as_str()));
}
console::print(format!("cells: {:?}", &cells));
prettytable::Row::new(cells)
}

Expand Down

0 comments on commit e8def5b

Please sign in to comment.