Sha256: 6cda84cc3a776af13e749daa9c39c2dacd156bf49281889274cdefec519c7d95

Contents?: true

Size: 338 Bytes

Versions: 22

Compression:

Stored size: 338 Bytes

Contents

class Remnant
  class Database
    class Query
      attr_reader :sql
      attr_reader :time
      attr_reader :backtrace

      def initialize(sql, time, backtrace = [])
        @sql = sql
        @time = time
        @backtrace = backtrace
      end

      def inspectable?
        sql.strip =~ /^SELECT /i
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
remnant-0.3.1 lib/remnant/database/query.rb
remnant-0.3.0 lib/remnant/database/query.rb