Class: SampleDataDumpPostgresDataStore::Gateway::SquishedSqlRunner

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

Instance Method Summary collapse

Constructor Details

#initialize(postgresql_adapter) ⇒ SquishedSqlRunner

Returns a new instance of SquishedSqlRunner.



66
67
68
# File 'lib/sample_data_dump_postgres_data_store/gateway.rb', line 66

def initialize(postgresql_adapter)
  @postgresql_adapter = postgresql_adapter
end

Instance Method Details

#run(sql) ⇒ Object



70
71
72
# File 'lib/sample_data_dump_postgres_data_store/gateway.rb', line 70

def run(sql)
  @postgresql_adapter.execute sql.squish
end