Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 701 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 701 Bytes

Install

sudo apt-get install libjsonrpccpp-dev libjsonrpccpp-tools sqlite3

git clone https://github.com/furyfire/SQLiteRPC

cd SQLiteRPC

make CONF=SERVER
make CONF=CLIENT
cd dist/Debug/GNU-Linux

#For the server
./sqliterpc my_database.db

#For the client
./sqliterpcclient localhost 8383 "CREATE TABLE test (id int);"

Test commands

curl -d "{"jsonrpc":"2.0","method":"query","params":{"sql":"INSERT INTO test2 VALUES (4);"},"id":3}" -o - localhost:8383 curl -d "{"jsonrpc":"2.0","method":"query","params":{"sql":"SELECT * FROM test2;"},"id":3}" -o - localhost:8383 curl -d "{"jsonrpc":"2.0","method":"ping","id":3}" -o - localhost:8383