MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / ToJSON

Method ToJSON

pkg/sql/sem/tree/datum.go:3538–3540  ·  view source on GitHub ↗

ToJSON converts the DGeometry to JSON.

(maxDecimalDigits int)

Source from the content-addressed store, hash-verified

3536
3537// ToJSON converts the DGeometry to JSON.
3538func (d *DGeometry) ToJSON(maxDecimalDigits int) (json.JSON, error) {
3539 return spatialObjectToJSON(d.Geometry.SpatialObject(), maxDecimalDigits)
3540}
3541
3542type DPGLSN struct {
3543 lsn.LSN

Callers 1

AsJSONFunction · 0.45

Calls 2

spatialObjectToJSONFunction · 0.85
SpatialObjectMethod · 0.45

Tested by

no test coverage detected