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

Method Format

parser/node.go:1367–1373  ·  view source on GitHub ↗

Format formats the node.

(buf *nodeBuffer)

Source from the content-addressed store, hash-verified

1365
1366// Format formats the node.
1367func (node *Use) Format(buf *nodeBuffer) {
1368 if !node.DBName.IsEmpty() {
1369 buf.Printf("use %v", node.DBName)
1370 } else {
1371 buf.Printf("use")
1372 }
1373}
1374
1375// Begin represents a Begin statement.
1376type Begin struct{}

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.65
IsEmptyMethod · 0.45

Tested by

no test coverage detected