Simple library connecting curl and MySQL
Only for Unix-compatible OS
libcurl4-openssl-dev
libmysqlclient development software
mysql
sudo ./install.sh
SELECT send_<post/put/delete>([<URL or IP with port>], data1 as alias1, data2 as alias2, ...)
FROM ...;
equivalent to
curl -X <POST/PUT/DELETE/> "<URL or IP with port>" \
-H "Content-Type: application/json" \
-d "{
\"alias1\":\"data1\",
\"alias2\":\"data2\",
...
}"
Returns response code per request if request was somehow delivered
NULL if something went wrong;