Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NOJIRA] Start using Bon #7

Merged
merged 1 commit into from
Nov 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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