MCPcopy Create free account
hub / github.com/dolthub/doltgresql / HasFKConstraint

Method HasFKConstraint

postgres/parser/sem/tree/create_table.go:431–433  ·  view source on GitHub ↗

HasFKConstraint returns if the ColumnTableDef has a foreign key constraint.

()

Source from the content-addressed store, hash-verified

429
430// HasFKConstraint returns if the ColumnTableDef has a foreign key constraint.
431func (node *ColumnTableDef) HasFKConstraint() bool {
432 return node.References.Table != nil
433}
434
435// IsComputed returns if the ColumnTableDef is a computed column.
436func (node *ColumnTableDef) IsComputed() bool {

Callers 4

docRowMethod · 0.95
FormatMethod · 0.95
HoistConstraintsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected