Module: Sequel::ActiveRecordConnection::Sqlite

Defined in:
lib/sequel/extensions/activerecord_connection/sqlite.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(db) ⇒ Object



6
7
8
9
10
# File 'lib/sequel/extensions/activerecord_connection/sqlite.rb', line 6

def self.extended(db)
  if db.timezone == :utc && db.respond_to?(:current_timestamp_utc)
    db.current_timestamp_utc = true
  end
end

Instance Method Details

#synchronizeObject



12
13
14
15
16
17
18
19
20
# File 'lib/sequel/extensions/activerecord_connection/sqlite.rb', line 12

def synchronize(*)
  super do |conn|
    conn.extended_result_codes = true if conn.respond_to?(:extended_result_codes=)

    Utils.add_prepared_statements_cache(conn)

    yield conn
  end
end