PG::BasicTypeRegistry::

Checker

module

Constants

ValidDirections
ValidFormats

Protected Instance Methods

anchor
build_coder_maps(conn_or_maps, registry: nil)
# File lib/pg/basic_type_registry.rb, line 152
          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)
        end
end
anchor
check_format_and_direction(format, direction)
# File lib/pg/basic_type_registry.rb, line 147
          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