while it wouldnt be difficult to build a REST API to accept an arbitrary SQL statement and return results there are several things to consider.
1. a single SQL SELECT statement might return 10s of thousands of rows making the REST service problematic with respect to timeouts and payload response size
2. you will want to make sure SQL security so that someone isnt allowed to
- perform a delete if they dont have access to do so
- select data from tables the dont have access to.
etc.
- Log in to post comments
.png)
.png)