Module: Ensql::ActiveRecordAdapter

Extended by:
Adapter
Defined in:
lib/ensql/active_record_adapter.rb

Overview

Implements the Adapter interface for ActiveRecord. Requires an ActiveRecord connection to be configured and established. Uses ActiveRecord::Base for the connection.

Examples:

require 'active_record'
ActiveRecord::Base.establish_connection(adapter: 'postgresql', database: 'mydb')
Ensql.adapter = Ensql::ActiveRecordAdapter

See Also:

Method Summary

Methods included from Adapter

fetch_count, fetch_each_row, fetch_first_column, fetch_first_field, fetch_first_row, fetch_rows, literalize, run