(formatter *Formatter)
| 174 | } |
| 175 | |
| 176 | func (a *AliasExpr) FormatSQL(formatter *Formatter) { |
| 177 | if _, isSelect := a.Expr.(*SelectQuery); isSelect { |
| 178 | formatter.WriteByte('(') |
| 179 | formatter.WriteExpr(a.Expr) |
| 180 | formatter.WriteByte(')') |
| 181 | } else { |
| 182 | formatter.WriteExpr(a.Expr) |
| 183 | } |
| 184 | formatter.WriteString(" AS ") |
| 185 | formatter.WriteExpr(a.Alias) |
| 186 | } |
| 187 | |
| 188 | func (a *AlterRole) FormatSQL(formatter *Formatter) { |
| 189 | formatter.WriteString("ALTER ROLE ") |
nothing calls this directly
no test coverage detected