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

Function Numeric

testing/go/framework.go:856–862  ·  view source on GitHub ↗

Numeric creates a numeric value from a string.

(str string)

Source from the content-addressed store, hash-verified

854
855// Numeric creates a numeric value from a string.
856func Numeric(str string) pgtype.Numeric {
857 numeric := pgtype.Numeric{}
858 if err := numeric.Scan(str); err != nil {
859 panic(err)
860 }
861 return numeric
862}
863
864// Timestamp is a helper function to convert timestamp strings to pgtype.Timestamp instances. If
865// the string cannot be converted, this function will panic.

Callers 15

types_test.goFile · 0.70
TestSameTypesFunction · 0.70
TestDoltBranchStatusFunction · 0.70
TestDoltConflictsResolveFunction · 0.70
TestDoltDiffFunction · 0.70
TestFunctionsMathFunction · 0.70
TestDateAndTimeFunctionFunction · 0.70
TestOperatorsFunction · 0.70
TestConflictsRootObjectFunction · 0.70
TestUserSpaceDoltTablesFunction · 0.70

Calls 1

ScanMethod · 0.45

Tested by 15

TestSameTypesFunction · 0.56
TestDoltBranchStatusFunction · 0.56
TestDoltConflictsResolveFunction · 0.56
TestDoltDiffFunction · 0.56
TestFunctionsMathFunction · 0.56
TestDateAndTimeFunctionFunction · 0.56
TestOperatorsFunction · 0.56
TestConflictsRootObjectFunction · 0.56
TestUserSpaceDoltTablesFunction · 0.56
TestCreateTableFunction · 0.56