MCPcopy Create free account
hub / github.com/cloudquery/cloudquery / parseRat

Function parseRat

plugins/destination/bigquery/client/read.go:61–68  ·  view source on GitHub ↗
(v *big.Rat)

Source from the content-addressed store, hash-verified

59}
60
61func parseRat(v *big.Rat) (str string, precision int32, scale int32) {
62 str = v.FloatString(10)
63 parts := strings.Split(str, ".")
64 if len(parts) == 2 {
65 return str, int32(len(parts[0]) + len(parts[1])), int32(len(parts[1]))
66 }
67 return str, int32(len(parts[0])), 0
68}
69
70func appendValue(builder array.Builder, value any) error {
71 if value == nil {

Callers 1

appendValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected