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

Method Width

postgres/parser/types/types.go:1132–1134  ·  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

1130//
1131// Width is always 0 for other types.
1132func (t *T) Width() int32 {
1133 return t.InternalType.Width
1134}
1135
1136// Precision is the accuracy of the data type.
1137//

Callers 13

TypeModifierMethod · 0.95
NameMethod · 0.95
SQLStringMethod · 0.95
upgradeTypeMethod · 0.95
downgradeTypeMethod · 0.95
stringTypeSQLMethod · 0.95
MakeCollatedStringFunction · 0.80
docMethod · 0.80
ParseAndRequireStringFunction · 0.80
columnTypeStringMethod · 0.80
FormatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected