Module: Simple::SQL::Connection::ActiveRecordConnection

Extended by:
Forwardable, ActiveRecordConnection, Simple::SQL::ConnectionAdapter
Included in:
ActiveRecordConnection
Defined in:
lib/simple/sql/connection.rb

Constant Summary

Constants included from Simple::SQL::ConnectionAdapter

Simple::SQL::ConnectionAdapter::Decoder, Simple::SQL::ConnectionAdapter::Encoder, Simple::SQL::ConnectionAdapter::Logging, Simple::SQL::ConnectionAdapter::Scope

Instance Method Summary collapse

Methods included from Simple::SQL::ConnectionAdapter

all, ask, exec, resolve_type

Instance Method Details

#connectionObject



41
42
43
# File 'lib/simple/sql/connection.rb', line 41

def connection
  ActiveRecord::Base.connection
end

#raw_connectionObject



37
38
39
# File 'lib/simple/sql/connection.rb', line 37

def raw_connection
  ActiveRecord::Base.connection.raw_connection
end