MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Width

Method Width

pkg/sql/types/types.go:1364–1366  ·  view source on GitHub ↗

Width is the size or scale of the type, such as number of bits or characters. INT : # of bits (64, 32, 16) FLOAT : # of bits (64, 32) DECIMAL : max # of digits after decimal point (must be <= Precision) STRING : max # of characters COLLATEDSTRING: max # of charac

()

Source from the content-addressed store, hash-verified

1362//
1363// Width is always 0 for other types.
1364func (t *T) Width() int32 {
1365 return t.InternalType.Width
1366}
1367
1368// Precision is the accuracy of the data type.
1369//

Callers 7

TypeModifierMethod · 0.95
NameMethod · 0.95
SQLStringMethod · 0.95
upgradeTypeMethod · 0.95
downgradeTypeMethod · 0.95
stringTypeSQLMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected