Class: SampleDataDumpPostgresDataStore::Gateway::TableConfigurationValidator
- Inherits:
-
Object
- Object
- SampleDataDumpPostgresDataStore::Gateway::TableConfigurationValidator
- Defined in:
- lib/sample_data_dump_postgres_data_store/gateway.rb
Instance Method Summary collapse
-
#initialize(table_configuration, squished_sql_runner) ⇒ TableConfigurationValidator
constructor
A new instance of TableConfigurationValidator.
- #validation_result {|schema_existence_result| ... } ⇒ Object
Constructor Details
#initialize(table_configuration, squished_sql_runner) ⇒ TableConfigurationValidator
Returns a new instance of TableConfigurationValidator.
78 79 80 81 |
# File 'lib/sample_data_dump_postgres_data_store/gateway.rb', line 78 def initialize(table_configuration, squished_sql_runner) @table_configuration = table_configuration @squished_sql_runner = squished_sql_runner end |
Instance Method Details
#validation_result {|schema_existence_result| ... } ⇒ Object
83 84 85 86 87 88 89 |
# File 'lib/sample_data_dump_postgres_data_store/gateway.rb', line 83 def validation_result yield schema_existence_result yield table_existence_result yield dump_where_condition_validity_result yield obfuscate_columns_validity_result Dry::Monads::Success(true) end |