Skip to content

Commit

Permalink
Start using Bon
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlospt committed Nov 13, 2024
1 parent 15bb24f commit 1d03683
Show file tree
Hide file tree
Showing 20 changed files with 151 additions and 161 deletions.
101 changes: 71 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ strum = { version = "0.26", features = ["derive"] }
cliclack = "0.3.2"
ctrlc = "3.4"
console = "0.15.8"
bon = "3.0"
rustic-faker-types = { path = "rustic-faker-types" }
rustic-anonymization-config = { path = "rustic-anonymization-config" }
rustic-duration = { path = "rustic-duration" }
Expand Down Expand Up @@ -101,6 +102,7 @@ rand_seeder.workspace = true
futures.workspace = true
dms-cdc-operator.workspace = true
deadpool-postgres.workspace = true
bon.workspace = true
rustic-faker-types.workspace = true
rustic-anonymization-config.workspace = true
rustic-duration.workspace = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ impl AnonymizationConfigTable {
"fake_email_transformation" => {
Box::new(FakeEmailTransformator::new(column_name, retain_if_empty))
}
"fake_multi_email_transformation" => {
Box::new(FakeMultiEmailTransformator::new(column_name))
}
"fake_multi_email_transformation" => Box::new(
FakeMultiEmailTransformator::builder()
.column_name(column_name.to_string())
.build(),
),
"fake_companyname_transformation" => Box::new(FakeCompanyNameTransformator::new(
column_name,
retain_if_empty,
Expand Down
2 changes: 1 addition & 1 deletion rustic-bg-whole-table-transformator
4 changes: 3 additions & 1 deletion rustic-cdc-operator/src/cdc_operator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ impl CDCOperator {
schema_name: &str,
application_users: Vec<String>,
) {
let target_db_finalizer = TargetDBFinalizer::new(target_pool);
let target_db_finalizer = TargetDBFinalizer::builder()
.target_db_pool(target_pool)
.build();

// Update sequence values
target_db_finalizer
Expand Down
Binary file modified rustic-config-generator-cli/rustic-config-generator-cli
Binary file not shown.
Loading

0 comments on commit 1d03683

Please sign in to comment.