Sha256: 0984f31a265cfcd8a275a86d03efca0b0fa65edb28dd739b29f8d82a3f2c8536

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

module RailsAdminContent
  module Mysql
    module Adapters
      class Client

        def initialize
          @client = client = Mysql2::Client.new ActiveRecord::Base.connection_config
        end

        def query(sql)
          @client.query(sql).each
        end

      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_admin_content-0.1.2 lib/rails_admin_content/mysql/adapters/client.rb
rails_admin_content-0.1.1 lib/rails_admin_content/mysql/adapters/client.rb
rails_admin_content-0.1.0 lib/rails_admin_content/mysql/adapters/client.rb