Sha256: 15987f76fb9dfa8260635fbda34ab26659ddc4ee4c7c858f66a513271c428e8c

Contents?: true

Size: 522 Bytes

Versions: 23

Compression:

Stored size: 522 Bytes

Contents

AircraftManufacturer.class_eval do
  data_miner do
    process "Start from scratch" do
      connection.drop_table table_name
    end
    
    schema Earth.database_options do
      string 'name'
    end
    
    process "Derive a list of aircraft manufacturers from aircraft" do
      Aircraft.run_data_miner!
      connection.execute %{
        INSERT IGNORE INTO aircraft_manufacturers(name)
        SELECT aircraft.manufacturer_name FROM aircraft WHERE aircraft.manufacturer_name IS NOT NULL
      }
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
earth-0.4.1 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.4.0 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.15 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.14 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.13 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.11 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.10 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.9 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.8 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.7 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.6 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.5 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.4 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.3 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.2 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.1 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.3.0 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.2.14 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.2.13 lib/earth/air/aircraft_manufacturer/data_miner.rb
earth-0.2.12 lib/earth/air/aircraft_manufacturer/data_miner.rb