MCPcopy Create free account
hub / github.com/apecloud/myduckserver / Numeric

Function Numeric

pgtest/framework.go:352–358  ·  view source on GitHub ↗

Numeric creates a numeric value from a string.

(str string)

Source from the content-addressed store, hash-verified

350 // return float64(val)
351 default:
352 return val
353 }
354}
355
356// Numeric creates a numeric value from a string.
357func Numeric(str string) pgtype.Numeric {
358 numeric := pgtype.Numeric{}
359 if err := numeric.Scan(str); err != nil {
360 panic(err)
361 }

Callers 2

NormalizeValToStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected