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

Method Format

parser/node.go:501–507  ·  view source on GitHub ↗

Format formats the Exec

(buf *nodeBuffer)

Source from the content-addressed store, hash-verified

499
500// Format formats the Exec
501func (node *Exec) Format(buf *nodeBuffer) {
502 if node.Name.IsEmpty() {
503 buf.Printf("%s (%v)", node.Action, node.Exprs)
504 return
505 }
506 buf.Printf("%s %s %v", node.Action, node.Name.Name, node.Exprs)
507}
508
509// Return represents a RETURN statement.
510type Return struct {

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.65
IsEmptyMethod · 0.45

Tested by

no test coverage detected