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

Method formatColumnType

pkg/sql/sem/tree/create.go:898–904  ·  view source on GitHub ↗
(ctx *FmtCtx)

Source from the content-addressed store, hash-verified

896}
897
898func (node *ColumnTableDef) formatColumnType(ctx *FmtCtx) {
899 if replaced, ok := node.replacedSerialTypeName(); ok {
900 ctx.WriteString(replaced)
901 } else {
902 ctx.FormatTypeReference(node.Type)
903 }
904}
905
906func (node *ColumnTableDef) replacedSerialTypeName() (string, bool) {
907 if node.IsSerial {

Callers 1

FormatMethod · 0.95

Calls 2

FormatTypeReferenceMethod · 0.80

Tested by

no test coverage detected