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

Function joinSQL

pkg/sql/ast/sql.go:1329–1340  ·  view source on GitHub ↗
(j *JoinClause)

Source from the content-addressed store, hash-verified

1327}
1328
1329func joinSQL(j *JoinClause) string {
1330 sb := getBuilder()
1331 defer putBuilder(sb)
1332 sb.WriteString(j.Type)
1333 sb.WriteString(" JOIN ")
1334 sb.WriteString(tableRefSQL(&j.Right))
1335 if j.Condition != nil {
1336 sb.WriteString(" ON ")
1337 sb.WriteString(exprSQL(j.Condition))
1338 }
1339 return sb.String()
1340}
1341
1342func windowSpecSQL(w *WindowSpec) string {
1343 var parts []string

Callers 1

SQLMethod · 0.70

Calls 5

getBuilderFunction · 0.85
putBuilderFunction · 0.85
tableRefSQLFunction · 0.70
exprSQLFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected