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.
Tycho Andersen 86bb3c46e5 cmd: add --prefix option to rqlite
If e.g. rqlite is embedded in some other HTTP engine via forwarding or
something, it might not be at /; let's allow the client to talk to rqlite
in this case.

Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
8 years ago
..
README.md Update README.md 9 years ago
execute.go cmd: add --prefix option to rqlite 8 years ago
main.go cmd: add --prefix option to rqlite 8 years ago
query.go cmd: add --prefix option to rqlite 8 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)
1 row affected (0.015 sec)
127.0.0.1:4001> INSERT INTO foo(name) VALUES("fiona")
1 row affected (0.055 sec)
127.0.0.1:4001> SELECT * FROM foo
+----+-------+
| id | name  |
+----+-------+
| 1  | fiona |
+----+-------+
127.0.0.1:4001> quit
bye~
$>