Skip to content

Commit

Permalink
Merge pull request #6 from samply/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
davidmscholz authored Oct 22, 2024
2 parents fb5097d + 527991e commit 4f5cf06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fhir2sql"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
license = "Apache-2.0"

Expand Down
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,10 @@ async fn sync_blaze_2_pg(
}
}
//insert or update the last remaining resources
if update_batch.len() > 0 {
update_counter += update_batch.len() as u32;
if update_batch.len() > 0 {
update_helper(pg_con_pool, &update_batch, &table_name).await?;
}
if insert_batch.len() > 0 {
insert_counter += insert_batch.len() as u32;
if insert_batch.len() > 0 {
insert_helper(pg_con_pool, &insert_batch, &table_name).await?;
}
//remove rows from pg that were not encountered in blaze
Expand Down

0 comments on commit 4f5cf06

Please sign in to comment.