Sha256: 02c23a0607fbb5f350d5a53c62acf15f38934ab49f41b3a0188115643bf6a88f

Contents?: true

Size: 297 Bytes

Versions: 6

Compression:

Stored size: 297 Bytes

Contents

module JazzFingers
  module Commands
    SQL = Pry::CommandSet.new do
      command "sql", "Send sql over AR." do |query|
        if defined?(Rails)
          pp ActiveRecord::Base.connection.select_all(query)
        else
          pp "Rails not defined"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jazz_fingers-6.2.0 lib/jazz_fingers/commands/sql.rb
jazz_fingers-6.1.0 lib/jazz_fingers/commands/sql.rb
jazz_fingers-6.0.0.pre.rc1 lib/jazz_fingers/commands/sql.rb
jazz_fingers-5.2.2 lib/jazz_fingers/commands/sql.rb
jazz_fingers-5.2.1 lib/jazz_fingers/commands/sql.rb
jazz_fingers-5.2.0 lib/jazz_fingers/commands/sql.rb