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

Method HasColumnFamily

pkg/sql/sem/tree/create.go:753–755  ·  view source on GitHub ↗

HasColumnFamily returns if the ColumnTableDef has a column family.

()

Source from the content-addressed store, hash-verified

751
752// HasColumnFamily returns if the ColumnTableDef has a column family.
753func (node *ColumnTableDef) HasColumnFamily() bool {
754 return node.Family.Name != "" || node.Family.Create
755}
756
757// Format implements the NodeFormatter interface.
758func (node *ColumnTableDef) Format(ctx *FmtCtx) {

Callers 3

docRowMethod · 0.95
NewColumnTableDefFunction · 0.95
FormatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected