type github.com/jackc/pgx/v5/pgtype.JSONCodec
13 uses
github.com/jackc/pgx/v5/pgtype (current package)
json.go#L11: type JSONCodec struct {
json.go#L16: func (*JSONCodec) FormatSupported(format int16) bool {
json.go#L20: func (*JSONCodec) PreferredFormat() int16 {
json.go#L24: func (c *JSONCodec) PlanEncode(m *Map, oid uint32, format int16, value any) EncodePlan {
json.go#L141: func (c *JSONCodec) PlanScan(m *Map, oid uint32, formatCode int16, target any) ScanPlan {
json.go#L147: func (c *JSONCodec) planScan(m *Map, oid uint32, formatCode int16, target any, depth int) ScanPlan {
json.go#L225: func (c *JSONCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) {
json.go#L235: func (c *JSONCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) {
jsonb.go#L24: plan := (&JSONCodec{Marshal: c.Marshal, Unmarshal: c.Unmarshal}).PlanEncode(m, oid, TextFormatCode, value)
jsonb.go#L29: return (&JSONCodec{Marshal: c.Marshal, Unmarshal: c.Unmarshal}).PlanEncode(m, oid, format, value)
jsonb.go#L47: plan := (&JSONCodec{Marshal: c.Marshal, Unmarshal: c.Unmarshal}).PlanScan(m, oid, TextFormatCode, target)
jsonb.go#L52: return (&JSONCodec{Marshal: c.Marshal, Unmarshal: c.Unmarshal}).PlanScan(m, oid, format, target)
pgtype_default.go#L68: defaultMap.RegisterType(&Type{Name: "json", OID: JSONOID, Codec: &JSONCodec{Marshal: json.Marshal, Unmarshal: json.Unmarshal}})