Skip to content

libmsqlcurl - lib for mysql and curl binding

License

Notifications You must be signed in to change notification settings

R31N3/lib-mysql-curl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL UDF for curl utilities

Simple library connecting curl and MySQL

Running

Only for Unix-compatible OS

Requirements

libcurl4-openssl-dev
libmysqlclient development software
mysql

Installation

sudo ./install.sh

Usage

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;

About

libmsqlcurl - lib for mysql and curl binding

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 70.6%
  • Shell 15.3%
  • TSQL 12.5%
  • Makefile 1.6%