Skip to content

Commit

Permalink
Denote which table is currently being converted (#14)
Browse files Browse the repository at this point in the history
to help with debugging
  • Loading branch information
aronwk-aaron authored Mar 31, 2024
1 parent 5a355fd commit 1208394
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/fdb/examples/sqlite-to-fdb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ fn convert_without_template(

for table_name in table_names {
let table_name = table_name?;
println!("Converting {}", table_name);

// Query used for getting column info and the actual data
let select_query = format!("select * from {}", &table_name);
Expand Down Expand Up @@ -255,6 +256,7 @@ fn convert_with_template(
for template_table in template_db.tables()?.iter() {
let template_table = template_table?;
let table_name = template_table.name();
println!("Converting {}", table_name);

// Find number of unique values in first column of source table
let unique_key_count = conn.query_row::<u32, _, _>(
Expand Down

0 comments on commit 1208394

Please sign in to comment.