1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Philip O Toole e7879143f1 Prettier output after 'execute' 9 years ago
..
README.md Just call the rqlite CLI 'rqlite' 9 years ago
execute.go Prettier output after 'execute' 9 years ago
main.go impl rqlite-cli 9 years ago
query.go No need for CLI to request pretty JSON 9 years ago

README.md

rqlite

rqlite is a command line tool for connecting to a rqlited node.

Build

go build -o rqlite

Usage

$> ./rqlite -h
Options:

  -h, --help
      display help

  -P, --scheme[=http]
      protocol scheme(http or https)

  -H, --host[=127.0.0.1]
      rqlited host address

  -p, --port[=4001]
      rqlited listening http(s) port

Example

# start rqlited
$> rqlited ~/node.1

# start rqlite CLI
$> ./rqlite
# now, we have entered the rqlite terminal
127.0.0.1:4001> CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name TEXT)
{
    "last_insert_id": 2,
    "rows_affected": 1,
    "time": 0.00019249700000000002
}
127.0.0.1:4001> INSERT INTO foo(name) VALUES("fiona")
{
    "last_insert_id": 1,
    "rows_affected": 1,
    "time": 0.000155756
}
127.0.0.1:4001> SELECT * FROM foo
+----+-------+
| id | name  |
+----+-------+
| 1  | fiona |
+----+-------+
127.0.0.1:4001> quit
bye~
$>