Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareSemantic ¶
CompareSemantic compares a formatted SQL string with the original input and checks whether they are logically still the same.
func Format ¶
func Format(sql string, options *formatters.Options) (string, error)
Format formats a single SQL statement using the given options.
func FormatFile ¶
func FormatFile(src []byte, options *formatters.Options) ([]byte, error)
FormatFile formats a SQL file containing multiple statements separated by semicolons. It preserves comments between statements and returns the formatted file content.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.