(formatter *Formatter)
| 186 | } |
| 187 | |
| 188 | func (a *AlterRole) FormatSQL(formatter *Formatter) { |
| 189 | formatter.WriteString("ALTER ROLE ") |
| 190 | if a.IfExists { |
| 191 | formatter.WriteString("IF EXISTS ") |
| 192 | } |
| 193 | for i, roleRenamePair := range a.RoleRenamePairs { |
| 194 | if i > 0 { |
| 195 | formatter.WriteString(", ") |
| 196 | } |
| 197 | formatter.WriteExpr(roleRenamePair) |
| 198 | } |
| 199 | if len(a.Settings) > 0 { |
| 200 | formatter.Break() |
| 201 | formatter.WriteString("SETTINGS") |
| 202 | formatter.Indent() |
| 203 | for i, setting := range a.Settings { |
| 204 | if i > 0 { |
| 205 | formatter.WriteString(",") |
| 206 | } |
| 207 | formatter.Break() |
| 208 | formatter.WriteExpr(setting) |
| 209 | } |
| 210 | formatter.Dedent() |
| 211 | } |
| 212 | } |
| 213 | |
| 214 | func (a *AlterTable) FormatSQL(formatter *Formatter) { |
| 215 | formatter.WriteString("ALTER TABLE ") |
nothing calls this directly
no test coverage detected