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

Method HasDefaultExpr

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

HasDefaultExpr returns if the ColumnTableDef has a default expression.

()

Source from the content-addressed store, hash-verified

371
372// HasDefaultExpr returns if the ColumnTableDef has a default expression.
373func (node *ColumnTableDef) HasDefaultExpr() bool {
374 return node.DefaultExpr.Expr != nil
375}
376
377// HasFKConstraint returns if the ColumnTableDef has a foreign key constraint.
378func (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