Class: SampleDataDumpPostgresDataStore::Gateway::TableConfigurationValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/sample_data_dump_postgres_data_store/gateway.rb

Instance Method Summary collapse

Constructor Details

#initialize(table_configuration, postgresql_adapter) ⇒ TableConfigurationValidator

Returns a new instance of TableConfigurationValidator.



74
75
76
77
# File 'lib/sample_data_dump_postgres_data_store/gateway.rb', line 74

def initialize(table_configuration, postgresql_adapter)
  @table_configuration = table_configuration
  @postgresql_adapter = postgresql_adapter
end

Instance Method Details

#validation_result {|schema_existence_result| ... } ⇒ Object

Yields:

  • (schema_existence_result)


79
80
81
82
83
84
85
# File 'lib/sample_data_dump_postgres_data_store/gateway.rb', line 79

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