API Documentation
POST
/api/v1/sql-escapeSQL Escape
Escape strings for safe SQL queries
encoders
Parameters
inputstringString to escape
dialectstringmysql, postgresql, sqlite, mssql
Default: mysql
Example Request
curl -X POST https://devtools.at/api/v1/sql-escape \
-H "Content-Type: application/json" \
-d '{"input":"O'Reilly","dialect":"mysql"}'Example Response
{
"success": true,
"data": {
"result": "O\\'Reilly"
},
"meta": {
"processingTime": 1
}
}Try it out
Test this endpoint directly in your browser
Response
Click "Execute Request" to see the response