MCPcopy Create free account
hub / github.com/dolthub/doltgresql / encode

Method encode

postgres/parser/json/json.go:157–157  ·  view source on GitHub ↗

encode appends the encoding of the JSON document to appendTo, returning the result alongside the JEntry for the document. Note that some values (true/false/null) are encoded with 0 bytes and are purely defined by their JEntry.

(appendTo []byte)

Source from the content-addressed store, hash-verified

155 // (true/false/null) are encoded with 0 bytes and are purely defined by their
156 // JEntry.
157 encode(appendTo []byte) (jEntry jEntry, b []byte, err error)
158
159 // MaybeDecode returns an equivalent JSON which is not a jsonEncoded.
160 MaybeDecode() JSON

Callers 3

encodeMethod · 0.65
encodeMethod · 0.65
EncodeJSONFunction · 0.65

Implementers 4

jsonNullpostgres/parser/json/json.go
jsonFalsepostgres/parser/json/json.go
jsonTruepostgres/parser/json/json.go
jsonEncodedpostgres/parser/json/encoded.go

Calls

no outgoing calls

Tested by

no test coverage detected