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

Method formatTableReferences

cmd/gosqlx/cmd/sql_formatter.go:956–964  ·  view source on GitHub ↗
(tables []ast.TableReference)

Source from the content-addressed store, hash-verified

954}
955
956func (f *SQLFormatter) formatTableReferences(tables []ast.TableReference) {
957 for i, table := range tables {
958 table := table // G601: Create local copy to avoid memory aliasing
959 if i > 0 {
960 f.builder.WriteString(", ")
961 }
962 f.formatTableReference(&table)
963 }
964}
965
966func (f *SQLFormatter) formatTableReference(table *ast.TableReference) {
967 // Output LATERAL keyword if set

Callers 1

formatSelectMethod · 0.95

Calls 1

formatTableReferenceMethod · 0.95

Tested by

no test coverage detected