MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Numeric

Function Numeric

testing/generation/function_coverage/output/framework_test.go:241–247  ·  view source on GitHub ↗

Numeric creates a numeric value from a string.

(str string)

Source from the content-addressed store, hash-verified

239
240// Numeric creates a numeric value from a string.
241func Numeric(str string) pgtype.Numeric {
242 numeric := pgtype.Numeric{}
243 if err := numeric.Scan(str); err != nil {
244 panic(err)
245 }
246 return numeric
247}
248
249// NumericToDecimal converts a pgtype.Numeric value to a apd.Decimal value.
250func NumericToDecimal(val pgtype.Numeric) *apd.Decimal {

Callers 13

Test_LnFunction · 0.70
Test_LogFunction · 0.70
Test_CeilFunction · 0.70
Test_CeilingFunction · 0.70
Test_Log10Function · 0.70
Test_TruncFunction · 0.70
Test_AbsFunction · 0.70
Test_DivFunction · 0.70
Test_TrimScaleFunction · 0.70
Test_SignFunction · 0.70
Test_ModFunction · 0.70
Test_SqrtFunction · 0.70

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected