EncodeSQLString writes a string literal to buf. All unicode and non-printable characters are escaped.
(buf *bytes.Buffer, in string)
| 83 | // EncodeSQLString writes a string literal to buf. All unicode and |
| 84 | // non-printable characters are escaped. |
| 85 | func EncodeSQLString(buf *bytes.Buffer, in string) { |
| 86 | EncodeSQLStringWithFlags(buf, in, EncNoFlags) |
| 87 | } |
| 88 | |
| 89 | // EscapeSQLString returns an escaped SQL representation of the given |
| 90 | // string. This is suitable for safely producing a SQL string valid |
no test coverage detected