Sha256: 65cbb172e7a4ebf3eae34b4b0393dabb3a46abf0ad8b831487da90c5e4413cc9

Contents?: true

Size: 356 Bytes

Versions: 1

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 3')
      errors = []
      query_result.each do |row|
        errors << STLLoadError.from_pg_results_row(row)
      end
      errors
    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
flare-up-0.3 lib/flare_up/stl_load_error_fetcher.rb