MCPcopy Index your code
hub / github.com/cloudspannerecosystem/spanner-cli / nullTimeToString

Function nullTimeToString

decoder.go:337–343  ·  view source on GitHub ↗
(v spanner.NullTime)

Source from the content-addressed store, hash-verified

335}
336
337func nullTimeToString(v spanner.NullTime) string {
338 if v.Valid {
339 return fmt.Sprintf("%s", v.Time.Format(time.RFC3339Nano))
340 } else {
341 return "NULL"
342 }
343}
344
345func nullDateToString(v spanner.NullDate) string {
346 if v.Valid {

Callers 1

DecodeColumnFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected