Sha256: 94906b58dbe7586d2cd389320e699733f0a60eee981cb65f42697e4c782d072c

Contents?: true

Size: 500 Bytes

Versions: 11

Compression:

Stored size: 500 Bytes

Contents

FlightPropulsion.class_eval do
  data_miner do
    schema do
      string 'name'
      string 'bts_aircraft_group_code'
    end
    
    process "derive from flight segments" do
      FlightSegment.run_data_miner!
      connection.execute %{
        INSERT IGNORE INTO flight_propulsions(name, bts_aircraft_group_code)
        SELECT flight_segments.propulsion_id, flight_segments.bts_aircraft_group_code FROM flight_segments WHERE LENGTH(flight_segments.propulsion_id) > 0
      }
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
earth-0.2.7 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.2.6 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.2.5 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.2.4 lib/earth/air/flight_propulsion/data_miner.rb
earth-ruby19-0.2.3 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.2.3 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.2.2 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.2.1 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.2.0 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.1.4 lib/earth/air/flight_propulsion/data_miner.rb
earth-0.1.3 lib/earth/air/flight_propulsion/data_miner.rb