func GetArrayElementOID(ctx context.Context, conn Querier, oid uint32) (uint32, error)
func GetCompositeFields(ctx context.Context, conn Querier, oid uint32) ([]pgtype.CompositeTypeField, error)
GetCompositeFields gets the fields of a composite type.
func GetEnumMembers(ctx context.Context, conn Querier, oid uint32) ([]string, error)
GetEnumMembers gets the possible values of the enum by oid.
func LoadDataType(ctx context.Context, conn Querier, ci *pgtype.ConnInfo, typeName string) (pgtype.DataType, error)
LoadDataType uses conn to inspect the database for typeName and produces a pgtype.DataType suitable for registration on ci.
type Querier interface { Exec(ctx context.Context, sql string, arguments ...interface{}) (pgconn.CommandTag, error) Query(ctx context.Context, sql string, optionsAndArgs ...interface{}) (pgx.Rows, error) QueryRow(ctx context.Context, sql string, optionsAndArgs ...interface{}) pgx.Row }