MCPcopy Create free account
hub / github.com/bytebase/bytebase / writeSuffixSelectClause

Function writeSuffixSelectClause

backend/plugin/parser/pg/backup.go:197–205  ·  view source on GitHub ↗
(buf *strings.Builder, node ast.Node, fullSQL string)

Source from the content-addressed store, hash-verified

195}
196
197func writeSuffixSelectClause(buf *strings.Builder, node ast.Node, fullSQL string) error {
198 switch n := node.(type) {
199 case *ast.UpdateStmt:
200 return writeUpdateSuffix(buf, n, fullSQL)
201 case *ast.DeleteStmt:
202 return writeDeleteSuffix(buf, n, fullSQL)
203 }
204 return nil
205}
206
207func writeUpdateSuffix(buf *strings.Builder, n *ast.UpdateStmt, sql string) error {
208 if n.Relation == nil {

Callers 1

generateSQLForTableFunction · 0.70

Calls 2

writeUpdateSuffixFunction · 0.70
writeDeleteSuffixFunction · 0.70

Tested by

no test coverage detected