EscapeSQLIdent ensures that the potential identifier in s is fully quoted, so that any special character it contains is not at risk of "spilling" in the surrounding syntax.
(s string)
| 90 | // quoted, so that any special character it contains is not at risk |
| 91 | // of "spilling" in the surrounding syntax. |
| 92 | func EscapeSQLIdent(s string) string { |
| 93 | var buf bytes.Buffer |
| 94 | EncodeEscapedSQLIdent(&buf, s) |
| 95 | return buf.String() |
| 96 | } |
| 97 | |
| 98 | // EncodeEscapedSQLIdent writes the identifier in s to buf. The |
| 99 | // identifier is always quoted. Double quotes inside the identifier |
nothing calls this directly
no test coverage detected
searching dependent graphs…