Sha256: 6bd2fe65fcf9ddf0db352499cb364c3935f3796234dba92969e88ba437949751
Contents?: true
Size: 330 Bytes
Versions: 4
Compression:
Stored size: 330 Bytes
Contents
print "Using PostgreSQL\n" puts "Resetting database" conn = ETL::Engine.connection(:data_warehouse) lines = open(File.join(File.dirname(__FILE__), 'schema.sql')).readlines lines.join.split(';').each_with_index do |line, index| begin conn.execute(line) rescue => e puts "failed to load line #{index}: #{e}" end end
Version data entries
4 entries across 4 versions & 4 rubygems