EncodeSQLString writes a string literal to buf. All unicode and non-printable characters are escaped.
(buf *bytes.Buffer, in string)
| 70 | // EncodeSQLString writes a string literal to buf. All unicode and |
| 71 | // non-printable characters are escaped. |
| 72 | func EncodeSQLString(buf *bytes.Buffer, in string) { |
| 73 | EncodeSQLStringWithFlags(buf, in, EncNoFlags) |
| 74 | } |
| 75 | |
| 76 | // EscapeSQLString returns an escaped SQL representation of the given |
| 77 | // string. This is suitable for safely producing a SQL string valid |
no test coverage detected
searching dependent graphs…