Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ajitsing authored Jun 23, 2019
1 parent 1ebcc1e commit 3f68fdb
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,20 @@ config = DataVerifier::Config.new do |c|
end
```

#### Inspector
Create an inspector to run in both build and verify mode.

```ruby
configs = [config1, config2, config3]
inspector = DataVerifier::Inspector.new(configs, report_name: 'my_awesome_report')
```

#### Building Baseline Data:

The below code will execute all the queries and store their result in json files.

```ruby
DataVerifier::BaselineBuilder.new
.with(db1_config)
.with(db2_config)
.build
inspector.inspect(phase: :BUILD)
```

#### Verification:
Expand All @@ -70,10 +75,7 @@ Below code will again execute the queries and will compare it with the baseline
After comparision it will create an excel file of the result.

```ruby
DataVerifier::Validator.new("data_sanity_report")
.validate_using(db1_config)
.validate_using(db2_config)
.generate_report
inspector.inspect(phase: :VERIFY)
```

#### Result:
Expand Down

0 comments on commit 3f68fdb

Please sign in to comment.