MCPcopy
hub / github.com/jackc/pgx / RegisterTypes

Method RegisterTypes

pgtype/pgtype.go:266–270  ·  view source on GitHub ↗

RegisterTypes registers multiple data types in the sequence they are provided.

(types []*Type)

Source from the content-addressed store, hash-verified

264
265// RegisterTypes registers multiple data types in the sequence they are provided.
266func (m *Map) RegisterTypes(types []*Type) {
267 for _, t := range types {
268 m.RegisterType(t)
269 }
270}
271
272// RegisterType registers a data type with the [Map]. t must not be mutated after it is registered.
273func (m *Map) RegisterType(t *Type) {

Calls 1

RegisterTypeMethod · 0.95