type github.com/jackc/pgtype.JSON
41 uses
github.com/jackc/pgtype (current package)
json.go#L10: type JSON struct {
json.go#L15: func (dst *JSON) Set(src interface{}) error {
json.go#L17: *dst = JSON{Status: Null}
json.go#L30: *dst = JSON{Bytes: []byte(value), Status: Present}
json.go#L33: *dst = JSON{Status: Null}
json.go#L35: *dst = JSON{Bytes: []byte(*value), Status: Present}
json.go#L39: *dst = JSON{Status: Null}
json.go#L41: *dst = JSON{Bytes: value, Status: Present}
json.go#L46: case JSON:
json.go#L57: *dst = JSON{Bytes: buf, Status: Present}
json.go#L63: func (dst JSON) Get() interface{} {
json.go#L79: func (src *JSON) AssignTo(dst interface{}) error {
json.go#L116: func (JSON) PreferredResultFormat() int16 {
json.go#L120: func (dst *JSON) DecodeText(ci *ConnInfo, src []byte) error {
json.go#L122: *dst = JSON{Status: Null}
json.go#L126: *dst = JSON{Bytes: src, Status: Present}
json.go#L130: func (dst *JSON) DecodeBinary(ci *ConnInfo, src []byte) error {
json.go#L134: func (JSON) PreferredParamFormat() int16 {
json.go#L138: func (src JSON) EncodeText(ci *ConnInfo, buf []byte) ([]byte, error) {
json.go#L149: func (src JSON) EncodeBinary(ci *ConnInfo, buf []byte) ([]byte, error) {
json.go#L154: func (dst *JSON) Scan(src interface{}) error {
json.go#L156: *dst = JSON{Status: Null}
json.go#L173: func (src JSON) Value() (driver.Value, error) {
json.go#L184: func (src JSON) MarshalJSON() ([]byte, error) {
json.go#L197: func (dst *JSON) UnmarshalJSON(b []byte) error {
json.go#L199: *dst = JSON{Status: Null}
json.go#L201: *dst = JSON{Bytes: b, Status: Present}
jsonb.go#L8: type JSONB JSON
jsonb.go#L11: return (*JSON)(dst).Set(src)
jsonb.go#L15: return (JSON)(dst).Get()
jsonb.go#L19: return (*JSON)(src).AssignTo(dst)
jsonb.go#L27: return (*JSON)(dst).DecodeText(ci, src)
jsonb.go#L54: return (JSON)(src).EncodeText(ci, buf)
jsonb.go#L71: return (*JSON)(dst).Scan(src)
jsonb.go#L76: return (JSON)(src).Value()
jsonb.go#L80: return (JSON)(src).MarshalJSON()
jsonb.go#L84: return (*JSON)(dst).UnmarshalJSON(b)
pgtype.go#L294: ci.RegisterDataType(DataType{Value: &JSON{}, Name: "json", OID: JSONOID})
pgtype.go#L912: "json": &JSON{},
github.com/jackc/pgx/v4
values.go#L45: case *pgtype.JSON:
github.com/jackc/pgx/v4/stdlib
sql.go#L608: var d pgtype.JSON
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |