MCPcopy
hub / github.com/sqldef/sqldef / formatSelectExprQuoteAware

Method formatSelectExprQuoteAware

schema/generator.go:5155–5164  ·  view source on GitHub ↗

formatSelectExprQuoteAware formats a SelectExpr (used in function arguments) with quote awareness.

(expr parser.SelectExpr)

Source from the content-addressed store, hash-verified

5153
5154// formatSelectExprQuoteAware formats a SelectExpr (used in function arguments) with quote awareness.
5155func (g *Generator) formatSelectExprQuoteAware(expr parser.SelectExpr) string {
5156 switch e := expr.(type) {
5157 case *parser.AliasedExpr:
5158 return g.formatExprQuoteAware(e.Expr)
5159 case *parser.StarExpr:
5160 return parser.String(e)
5161 default:
5162 return parser.String(expr)
5163 }
5164}
5165
5166func areSameIdentityDefinition(identityA *Identity, identityB *Identity) bool {
5167 if identityA == nil && identityB == nil {

Callers 1

formatExprQuoteAwareMethod · 0.95

Calls 2

formatExprQuoteAwareMethod · 0.95
StringFunction · 0.92

Tested by

no test coverage detected