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

Function CompactStyle

pkg/sql/ast/format.go:66–75  ·  view source on GitHub ↗

CompactStyle returns formatting options for minimal whitespace output.

()

Source from the content-addressed store, hash-verified

64
65// CompactStyle returns formatting options for minimal whitespace output.
66func CompactStyle() FormatOptions {
67 return FormatOptions{
68 IndentStyle: IndentSpaces,
69 IndentWidth: 0,
70 KeywordCase: KeywordPreserve,
71 LineWidth: 0,
72 NewlinePerClause: false,
73 AddSemicolon: false,
74 }
75}
76
77// ReadableStyle returns formatting options for human-readable output.
78func ReadableStyle() FormatOptions {

Callers 15

FuzzFormatFunction · 0.92
TranspileFunction · 0.92
NormalizeFunction · 0.92
FormatSQLFunction · 0.92
FormatSQLWithDialectFunction · 0.92
TestRenderSelect_CompactFunction · 0.92
TestRenderSelect_NilFunction · 0.92
TestRenderInsert_NilFunction · 0.92
TestRenderUpdate_NilFunction · 0.92
TestRenderDelete_NilFunction · 0.92

Calls

no outgoing calls

Tested by 15

FuzzFormatFunction · 0.74
TestRenderSelect_CompactFunction · 0.74
TestRenderSelect_NilFunction · 0.74
TestRenderInsert_NilFunction · 0.74
TestRenderUpdate_NilFunction · 0.74
TestRenderDelete_NilFunction · 0.74
TestRenderSetOperationFunction · 0.74