PG::BasicTypeRegistry::

Checker module

Protected Instance Methods

build_coder_maps(conn_or_maps, registry: nil)
# File lib/pg/basic_type_registry.rb, line 160
          def build_coder_maps(conn_or_maps, registry: nil)
        if conn_or_maps.is_a?(PG::BasicTypeRegistry::CoderMapsBundle)
                raise ArgumentError, "registry argument must be given to CoderMapsBundle" if registry
                conn_or_maps
        else
                PG::BasicTypeRegistry::CoderMapsBundle.new(conn_or_maps, registry: registry).freeze
        end
end
check_format_and_direction(format, direction)
# File lib/pg/basic_type_registry.rb, line 155
          def check_format_and_direction(format, direction)
        raise(ArgumentError, "Invalid format value %p" % format) unless ValidFormats[format]
        raise(ArgumentError, "Invalid direction %p" % direction) unless ValidDirections[direction]
end