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