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

Method HasFKConstraint

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

HasFKConstraint returns if the ColumnTableDef has a foreign key constraint.

()

Source from the content-addressed store, hash-verified

736
737// HasFKConstraint returns if the ColumnTableDef has a foreign key constraint.
738func (node *ColumnTableDef) HasFKConstraint() bool {
739 return node.References.Table != nil
740}
741
742// IsComputed returns if the ColumnTableDef is a computed column.
743func (node *ColumnTableDef) IsComputed() bool {

Callers 5

docRowMethod · 0.95
NewColumnTableDefFunction · 0.95
FormatMethod · 0.95
HoistConstraintsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected