Sha256: fd0e013e0c8a0e6a292b1decb50491e5fcdbb402354b65eb7e9873986eaeea00

Contents?: true

Size: 356 Bytes

Versions: 8

Compression:

Stored size: 356 Bytes

Contents

module FlareUp

  class STLLoadErrorFetcher

    def self.fetch_errors(connection)
      query_result = connection.execute('SELECT * FROM stl_load_errors ORDER BY query DESC, line_number, position LIMIT 1')
      errors = []
      query_result.each do |row|
        errors << STLLoadError.from_pg_results_row(row)
      end
      errors
    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
flare-up-0.10 lib/flare_up/stl_load_error_fetcher.rb
flare-up-0.9 lib/flare_up/stl_load_error_fetcher.rb
flare-up-0.8 lib/flare_up/stl_load_error_fetcher.rb
flare-up-0.7 lib/flare_up/stl_load_error_fetcher.rb
flare-up-0.6 lib/flare_up/stl_load_error_fetcher.rb
flare-up-0.5 lib/flare_up/stl_load_error_fetcher.rb
flare-up-0.4 lib/flare_up/stl_load_error_fetcher.rb
flare-up-0.2 lib/flare_up/stl_load_error_fetcher.rb