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
- Host: GitHub
- URL: https://github.com/chzchzchz/raftsql
- Owner: chzchzchz
- Created: 2015-12-20T22:54:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-21T06:55:59.000Z (over 9 years ago)
- Last Synced: 2023-02-27T18:37:50.448Z (over 2 years ago)
- Language: Go
- Size: 11.7 KB
- Stars: 34
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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"
```