MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / FromInt64

Function FromInt64

pkg/util/json/json.go:951–955  ·  view source on GitHub ↗

FromInt64 returns a JSON value given a int64.

(v int64)

Source from the content-addressed store, hash-verified

949
950// FromInt64 returns a JSON value given a int64.
951func FromInt64(v int64) JSON {
952 dec := apd.Decimal{}
953 dec.SetFinite(v, 0)
954 return jsonNumber(dec)
955}
956
957// FromFloat64 returns a JSON value given a float64.
958func FromFloat64(v float64) (JSON, error) {

Callers 1

MakeJSONFunction · 0.70

Calls 1

jsonNumberTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…