Sha256: 4d5bb6a1393a2ad3cedf9de021f5cb87f74ea8c7aa12ecde99c5e9bc87185539

Contents?: true

Size: 901 Bytes

Versions: 11

Compression:

Stored size: 901 Bytes

Contents

# frozen_string_literal: true

# == Schema Information
#
# Table name: rmp_traces
#
#  id                      :integer          not null, primary key
#  rmp_profiled_request_id :bigint           not null
#  name                    :string
#  start                   :bigint
#  finish                  :bigint
#  duration                :integer
#  allocations             :bigint
#  payload                 :json
#  backtrace               :json
#  created_at              :datetime         not null
#  updated_at              :datetime         not null
#
# Indexes
#
#  index_rmp_traces_on_rmp_profiled_request_id  (rmp_profiled_request_id)
#
module RailsMiniProfiler
  class SequelTrace < Trace
    store :payload, accessors: %i[name sql binds]

    class << self
      def find_sti_class(_)
        super(name)
      end

      def sti_name
        'sql.active_record'
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rails_mini_profiler-0.7.0 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.6.0 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.5.0 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.4.0 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.3.0 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.2.1 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.2.0 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.1.3 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.1.2 app/models/rails_mini_profiler/sequel_trace.rb
rails_mini_profiler-0.1.1 app/models/rails_mini_profiler/sequel_trace.rb