MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / FormatString

Function FormatString

pkg/formatter/formatter.go:175–177  ·  view source on GitHub ↗

FormatString is a convenience function that formats SQL with default options.

(sql string)

Source from the content-addressed store, hash-verified

173
174// FormatString is a convenience function that formats SQL with default options.
175func FormatString(sql string) (string, error) {
176 return New(Options{}).Format(sql)
177}

Callers 2

formatFunction · 0.92
TestFormatStringFunction · 0.85

Calls 2

NewFunction · 0.70
FormatMethod · 0.45

Tested by 1

TestFormatStringFunction · 0.68