Skip to content

furyfire/SQLiteRPC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple SQLite JSON-RPC server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published