Sha256: 30008a96876d33ea7680891a79aaa4cb66bcc590c8b3a7064eeaa3c21192d5cb
Contents?: true
Size: 726 Bytes
Versions: 9
Compression:
Stored size: 726 Bytes
Contents
require_relative "utils" module Sequel module ActiveRecordConnection module Sqlite def self.extended(db) if db.timezone == :utc && db.respond_to?(:current_timestamp_utc) db.current_timestamp_utc = true end end 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 private def _execute(type, sql, opts, &block) synchronize(opts[:server]) do |conn| Utils.set_value(conn, :results_as_hash, nil) do super end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems