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

Method Format

parser/node.go:423–429  ·  view source on GitHub ↗

Format formats the node.

(buf *nodeBuffer)

Source from the content-addressed store, hash-verified

421
422// Format formats the node.
423func (node *Update) Format(buf *nodeBuffer) {
424 buf.Printf("update %v%v set %v", node.Comments, node.TableExprs, node.Exprs)
425 if !node.From.IsEmpty() {
426 buf.Printf(" from %v", node.From)
427 }
428 buf.Printf("%v%v%v", node.Where, node.OrderBy, node.Limit)
429}
430
431// Delete represents a DELETE statement.
432// If you add fields here, consider adding them to calls to validateSubquerySamePlan.

Callers

nothing calls this directly

Calls 2

PrintfMethod · 0.65
IsEmptyMethod · 0.45

Tested by

no test coverage detected