An open API service indexing awesome lists of open source software.

https://github.com/chzchzchz/raftsql

sql with commits over raft
https://github.com/chzchzchz/raftsql

Last synced: 4 months ago
JSON representation

sql with commits over raft

Awesome Lists containing this project

README

        

# raftsql

A SQLite database backed by raft.

## Building
```sh
make
```

## Usage

Start a cluster:
```sh
goreman start
```

Manipulate the database:
```sh
curl -L http://localhost:22380 -L -XPUT -d "CREATE TABLE main.t (name text)"
curl -L http://localhost:32380 -L -XPUT -d "INSERT INTO main.t (name) VALUES (\"abc\")"
```

Query the database:
```sh
curl -L http://localhost:32380 -L -XGET -d "SELECT * FROM main.t"
```