type github.com/jackc/pgx/v5/pgtype.JSONBCodec
8 uses
github.com/jackc/pgx/v5/pgtype (current package)
jsonb.go#L8: type JSONBCodec struct {
jsonb.go#L13: func (*JSONBCodec) FormatSupported(format int16) bool {
jsonb.go#L17: func (*JSONBCodec) PreferredFormat() int16 {
jsonb.go#L21: func (c *JSONBCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan {
jsonb.go#L44: func (c *JSONBCodec) PlanScan(m *Map, oid uint32, format int16, target any) ScanPlan {
jsonb.go#L78: func (c *JSONBCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) {
jsonb.go#L105: func (c *JSONBCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) {
pgtype_default.go#L69: defaultMap.RegisterType(&Type{Name: "jsonb", OID: JSONBOID, Codec: &JSONBCodec{Marshal: json.Marshal, Unmarshal: json.Unmarshal}})