SQLIdentifier returns the normalized username in a form suitable for parsing as a SQL identifier. The identifier is quoted if it contains special characters or it is a reserved keyword.
()
| 269 | // The identifier is quoted if it contains special characters |
| 270 | // or it is a reserved keyword. |
| 271 | func (s SQLUsername) SQLIdentifier() string { |
| 272 | var buf bytes.Buffer |
| 273 | lexbase.EncodeRestrictedSQLIdent(&buf, s.u, lexbase.EncNoFlags) |
| 274 | return buf.String() |
| 275 | } |
| 276 | |
| 277 | // Format implements the fmt.Formatter interface. It renders |
| 278 | // the username in normalized form. |
nothing calls this directly
no test coverage detected