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

Method Width

pkg/sql/types/types.go:911–913  ·  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 characters

()

Source from the content-addressed store, hash-verified

909//
910// Width is always 0 for other types.
911func (t *T) Width() int32 {
912 return t.InternalType.Width
913}
914
915// Precision is the accuracy of the data type.
916//

Callers 15

TypeModifierMethod · 0.95
NameMethod · 0.95
SQLStringMethod · 0.95
upgradeTypeMethod · 0.95
downgradeTypeMethod · 0.95
stringTypeSQLMethod · 0.95
MakeCollatedStringFunction · 0.80
ParseMethod · 0.80
docMethod · 0.80
DatumTypeSizeFunction · 0.80
ParseAndRequireStringFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected