MCPcopy
hub / github.com/sqldef/sqldef / Format

Method Format

parser/node.go:924–935  ·  view source on GitHub ↗

Format formats the node.

(buf *nodeBuffer)

Source from the content-addressed store, hash-verified

922
923// Format formats the node.
924func (cd *CheckDefinition) Format(buf *nodeBuffer) {
925 if !cd.ConstraintName.IsEmpty() {
926 buf.Printf("constraint %v ", cd.ConstraintName)
927 }
928 buf.Printf("check (%v)", cd.Where.Expr)
929 if bool(cd.NoInherit) {
930 buf.Printf(" no inherit")
931 }
932 if cd.NotForReplication {
933 buf.Printf(" not for replication")
934 }
935}
936
937type ExclusionPair struct {
938 Expression Expr

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.65
IsEmptyMethod · 0.45

Tested by

no test coverage detected