Sha256: ed819ef8bd52ccb9befe30721a50b7dbe43b6aee6b2b3e607fb5c072d01c78fa
Contents?: true
Size: 439 Bytes
Versions: 30
Compression:
Stored size: 439 Bytes
Contents
# frozen_string_literal: true module Sequel module SetLocal private def begin_new_transaction(conn, opts) super check_set_local(conn, opts[:set_local]) end def check_set_local(conn, locals) return if locals.nil? locals.each do |key, value| log_connection_execute(conn, "SET LOCAL #{key} = \"#{value}\"") end end end Database.register_extension(:set_local, SetLocal) end
Version data entries
30 entries across 30 versions & 1 rubygems