module PG
def self.connect( *args, &block )
def self.connect( *args, &block ) Connection.new( *args, &block ) end
def self.make_shareable(obj)
def self.make_shareable(obj) Ractor.make_shareable(obj) end
def self.make_shareable(obj)
def self.make_shareable(obj) obj.freeze end
def self.require_bigdecimal_without_warning
But it's a false positive, since we enable bigdecimal depending features only if it's available.
Ruby-3.4+ prints a warning, if bigdecimal is required but not in the Gemfile.
def self.require_bigdecimal_without_warning oldverb, $VERBOSE = $VERBOSE, nil require "bigdecimal" ensure $VERBOSE = oldverb end
def self.version_string( include_buildnum=nil )
Get the PG library version.
def self.version_string( include_buildnum=nil ) "%s %s" % [ self.name, VERSION ] end