From df43e76ffb9273df56f79b903ded7b80b65e1b23 Mon Sep 17 00:00:00 2001 From: Grigorii Safronov Date: Fri, 12 Apr 2024 16:04:03 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20'c?= =?UTF-8?q?md/rqlite/README.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/rqlite/README.md | 86 -------------------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 cmd/rqlite/README.md diff --git a/cmd/rqlite/README.md b/cmd/rqlite/README.md deleted file mode 100644 index 9a482e56..00000000 --- a/cmd/rqlite/README.md +++ /dev/null @@ -1,86 +0,0 @@ -# rqlite - -`rqlite` is a command line tool for connecting to a rqlited node. Consult the [SQLite query language documentation](https://www.sqlite.org/lang.html) for full details on the supported SQL syntax. - -- [Usage](#usage) -- [Example](#example) -- [Build](#example) - -## Usage - -```sh -$> rqlite -h -Options: - - -h, --help - display help information - - -a, --alternatives - comma separated list of 'host:port' pairs to use as fallback - - -s, --scheme[=http] - protocol scheme (http or https) - - -H, --host[=127.0.0.1] - rqlited host address - - -p, --port[=4001] - rqlited host port - - -P, --prefix[=/] - rqlited HTTP URL prefix - - -i, --insecure[=false] - do not verify rqlited HTTPS certificate - - -c, --ca-cert - path to trusted X.509 root CA certificate - - -u, --user - set basic auth credentials in form username:password - - -v, --version - display CLI version -``` - -## Example -Connecting to a host running locally: -```sh -$ rqlite -127.0.0.1:4001> CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name TEXT) -0 row affected (0.000362 sec) -127.0.0.1:4001> .tables -+------+ -| name | -+------+ -| foo | -+------+ -127.0.0.1:4001> .schema -+---------------------------------------------------------------+ -| sql | -+---------------------------------------------------------------+ -| CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name TEXT) | -+---------------------------------------------------------------+ -127.0.0.1:4001> INSERT INTO foo(name) VALUES("fiona") -1 row affected (0.000117 sec) -127.0.0.1:4001> SELECT * FROM foo -+----+-------+ -| id | name | -+----+-------+ -| 1 | fiona | -+----+-------+ -127.0.0.1:4001> quit -bye~ -``` -Connecting to a host running somewhere else on the network: -``` -$ rqlite -H localhost -p 8493 -locahost:8493> -``` - -## Build - -```sh -go build -o rqlite -``` -