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

Method HasFKConstraint

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

HasFKConstraint returns if the ColumnTableDef has a foreign key constraint.

()

Source from the content-addressed store, hash-verified

376
377// HasFKConstraint returns if the ColumnTableDef has a foreign key constraint.
378func (node *ColumnTableDef) HasFKConstraint() bool {
379 return node.References.Table != nil
380}
381
382// IsComputed returns if the ColumnTableDef is a computed column.
383func (node *ColumnTableDef) IsComputed() bool {

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected