Module: Simple::SQL::Connection::ActiveRecordConnection
Constant Summary
Simple::SQL::ConnectionAdapter::Logging, Simple::SQL::ConnectionAdapter::Scope
Instance Method Summary
collapse
all, ask, exec, resolve_type
Instance Method Details
#connection ⇒ Object
64
65
66
|
# File 'lib/simple/sql/connection.rb', line 64
def connection
ActiveRecord::Base.connection
end
|
#disconnect! ⇒ Object
58
59
60
61
62
|
# File 'lib/simple/sql/connection.rb', line 58
def disconnect!
@raw_connection = nil
end
|
#raw_connection ⇒ Object
54
55
56
|
# File 'lib/simple/sql/connection.rb', line 54
def raw_connection
ActiveRecord::Base.connection.raw_connection
end
|