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-1.0.0 lib/remnant/database/query.rb
remnant-0.4.10 lib/remnant/database/query.rb
remnant-0.4.9 lib/remnant/database/query.rb
remnant-0.4.8 lib/remnant/database/query.rb
remnant-0.4.7 lib/remnant/database/query.rb
remnant-0.4.6 lib/remnant/database/query.rb
remnant-0.4.5 lib/remnant/database/query.rb
remnant-0.9.5 lib/remnant/database/query.rb
remnant-0.9.4 lib/remnant/database/query.rb
remnant-0.4.4 lib/remnant/database/query.rb
remnant-0.9.3 lib/remnant/database/query.rb
remnant-0.9.2 lib/remnant/database/query.rb
remnant-0.9.1 lib/remnant/database/query.rb
remnant-0.9.0 lib/remnant/database/query.rb
remnant-0.4.3 lib/remnant/database/query.rb
remnant-0.4.2 lib/remnant/database/query.rb
remnant-0.4.1 lib/remnant/database/query.rb
remnant-0.4.0 lib/remnant/database/query.rb
remnant-0.3.3 lib/remnant/database/query.rb
remnant-0.3.2 lib/remnant/database/query.rb