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

Method HasDefaultExpr

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

HasDefaultExpr returns if the ColumnTableDef has a default expression.

()

Source from the content-addressed store, hash-verified

424
425// HasDefaultExpr returns if the ColumnTableDef has a default expression.
426func (node *ColumnTableDef) HasDefaultExpr() bool {
427 return node.DefaultExpr.Expr != nil
428}
429
430// HasFKConstraint returns if the ColumnTableDef has a foreign key constraint.
431func (node *ColumnTableDef) HasFKConstraint() bool {

Callers 3

docRowMethod · 0.95
NewColumnTableDefFunction · 0.95
FormatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected