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

Method ToJSON

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

ToJSON converts the DGeography to JSON.

(maxDecimalDigits int)

Source from the content-addressed store, hash-verified

3411
3412// ToJSON converts the DGeography to JSON.
3413func (d *DGeography) ToJSON(maxDecimalDigits int) (json.JSON, error) {
3414 return spatialObjectToJSON(d.Geography.SpatialObject(), maxDecimalDigits)
3415}
3416
3417// DGeometry is the Geometry Datum.
3418type DGeometry struct {

Callers

nothing calls this directly

Calls 2

spatialObjectToJSONFunction · 0.85
SpatialObjectMethod · 0.45

Tested by

no test coverage detected