core :: Text :: to_sql_string
self
'
\
assert "'; DROP TABLE students".to_sql_string == "'''; DROP TABLE students'"
# Return `self` between `'`s, escaping `\` and `'` # # assert "'; DROP TABLE students".to_sql_string == "'''; DROP TABLE students'" fun to_sql_string: String do return "'{self.replace('\\', "\\\\").replace('\'', "''")}'" end