Sha256: d50532dba48b842f6df3adeb1f973ee3f7e4db0f2ed3cfffde135053e391dfc8
Contents?: true
Size: 602 Bytes
Versions: 3
Compression:
Stored size: 602 Bytes
Contents
class Baza::InfoActiveRecordSqlite3 attr_reader :db def self.connection require "active_record" conn_pool = ::ActiveRecord::ConnectionAdapters::ConnectionHandler.new.establish_connection( adapter: "sqlite3", database: ":memory:" ) conn = conn_pool.connection {pool: conn_pool, conn: conn} end def initialize(args = {}) data = Baza::InfoActiveRecordSqlite3.connection @db = Baza::Db.new({ type: :active_record, conn: data.fetch(:conn), index_append_table_name: true }.merge(args)) end def before; end def after; end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
baza-0.0.38 | spec/info_active_record_sqlite3.rb |
baza-0.0.37 | spec/info_active_record_sqlite3.rb |
baza-0.0.36 | spec/info_active_record_sqlite3.rb |