Package goescapemysql provides a go function that escape a string as mysql-server does.
This function escapes strings by adding backslashes before special characters, such as making the null byte \0
and
the newline byte \n
. The implementation also converts %
to \%
and _
to \_
, respectively.
Package goescapemysql is for personal use only and does not guarantee anything.
See WTFPL.