-
Notifications
You must be signed in to change notification settings - Fork 13
SQL FaaS
SQL formatter widget can be easily embedded to your site within 3 minutes by copy the short code I give you into your website's HTML. After that, a Format SQL label will be appeared at the left/right side:
After click this label, you can format SQL in this panel:
Here is an online demo.
If you prefer, you can even use a simple text link to launch sql formatter.
This SQL formatter widget is based on our widely acclaimed tool: Instant sql formatter which had been online 5 years and tidy more than 1 million SQLs worldwide.
Contact us to request a free account to use this SQL formatter widget.
You can integrate this service into your application and web site by using sql formatter API.
URL: http://www.gudusoft.com/format.php
METHOD: POST
Content-Type: application/x-www-form-urlencoded and is the most widely used POST kind.
Just POST a request with data in json format simple as this
rqst_input_sql=select+*+from+dual
And you will get formatted sql in json format like this:
{
"rspn_http_status" : 200,
"rspn_capacity" : 0,
"rspn_db_vendor" : "generic",
"rspn_output_fmt" : "",
"rspn_parse_sql_status" : 0,
"rspn_parse_sql_message" : "success",
"rspn_formatted_sql" : "SELECT *\nFROM DUAL \n"
}Check API manual.
curl --data "rqst_input_sql=select+*+from+dual" http://www.gudusoft.com/format.php

