Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 183b135

Browse files
committedNov 26, 2021
fix: readme
1 parent 11c8c85 commit 183b135

File tree

1 file changed

+0
-116
lines changed

1 file changed

+0
-116
lines changed
 

‎README.md

Lines changed: 0 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -112,122 +112,6 @@ IOTDB#(127.0.0.1:6667)> SHOW STORAGE GROUP
112112

113113
3. Execute sql from the specified sql file
114114

115-
```shell
116-
$iotdb file tests/create_and_insert.sql
117-
<div align="center">
118-
119-
![Logo](https://raw.githubusercontent.com/francis-du/iotdb-rs/main/iotdb-rs.png)
120-
121-
<h1>iotdb-cli</h1>
122-
<h3>Apache IotDB CLI Client written in Rust</h3>
123-
124-
[![License](https://img.shields.io/badge/license-Apache%202.0-blue?style=flat-square&color=%23E5531A)](https://github.com/francis-du/iotdb-cli/blob/main/LICENSE)
125-
[![Rust Build](https://img.shields.io/github/workflow/status/francis-du/iotdb-cli/cargo-test?label=build&style=flat-square)](https://github.com/francis-du/iotdb-cli/actions?query=workflow%3Acargo-test)
126-
[![Crates Publish](https://img.shields.io/github/workflow/status/francis-du/iotdb-cli/cargo-publish?label=publish&style=flat-square)](https://github.com/francis-du/iotdb-cli/actions?query=workflow%3Acargo-publish)
127-
128-
</div>
129-
130-
---
131-
132-
![Alt](https://repobeats.axiom.co/api/embed/86055cf67fcaac9e6e93c64c9a7a1630686ceda1.svg "Repobeats analytics image")
133-
134-
## Installation
135-
136-
1. Using `Cargo`
137-
138-
```shell
139-
cargo install iotdb-cli
140-
```
141-
142-
2. From binary
143-
144-
Download latest `iotdb` binary from [here](https://github.com/francis-du/iotdb-cli/releases/latest/).
145-
146-
## Usage
147-
148-
```shell
149-
iotdb -h
150-
```
151-
152-
```shell
153-
154-
▀██▀ ▄▄█▀▀██ █▀▀██▀▀█ ▀██▀▀█▄ ▀██▀▀█▄
155-
██ ▄█▀ ██ ██ ██ ██ ██ ██
156-
██ ██ ██ ██ ██ ██ ██▀▀▀█▄
157-
██ ▀█▄ ██ ██ ██ ██ ██ ██
158-
▄██▄ ▀▀█▄▄▄█▀ ▄██▄ ▄██▄▄▄█▀ ▄██▄▄▄█▀ 0.0.1
159-
160-
USAGE:
161-
iotdb [FLAGS] [OPTIONS] [sql] [SUBCOMMAND]
162-
163-
FLAGS:
164-
-d, --debug Enable debug mode
165-
-h, --help Prints help information
166-
-V, --version Prints version information
167-
168-
OPTIONS:
169-
-e, --endpoint <endpoint> Set server endpoint, eg: `localhost:6667`
170-
-H, --host <host> Set server hostname or ip address, eg: `127.0.0.1`
171-
-p, --password <password> Set user password
172-
-P, --port <port> Set server port
173-
-t, --timezone <timezone> Set timezone, eg: `UTC+8`
174-
-u, --user <user> Set user name
175-
176-
ARGS:
177-
<sql> Execute single sql, eg: `iotdb "show storage group"`
178-
179-
SUBCOMMANDS:
180-
file Execute batch form sql file, eg: `iotdb file ddl.sql`
181-
help Prints this message or the help of the given subcommand(s)
182-
183-
```
184-
185-
1. Connect to IoTDB server
186-
187-
- Use default username and password
188-
189-
```shell
190-
$ iotdb "SHOW STORAGE GROUP"
191-
+---------------+
192-
| storage group |
193-
+---------------+
194-
| root.ln |
195-
| root.sg1 |
196-
+---------------+
197-
```
198-
199-
- Specify parameters
200-
201-
```shell
202-
iotdb -u root -p root -e 127.0.0.1:6667 -t UTC+8
203-
204-
or
205-
206-
iotdb -u root -p root -H 127.0.0.1 -P 6667 -t UTC+8
207-
```
208-
209-
2. Execute single SQL interactively
210-
211-
```shell
212-
$ iotdb -u root -p root --e 127.0.0.1:6667 -t UTC+8
213-
214-
▀██▀ ▄▄█▀▀██ █▀▀██▀▀█ ▀██▀▀█▄ ▀██▀▀█▄
215-
██ ▄█▀ ██ ██ ██ ██ ██ ██
216-
██ ██ ██ ██ ██ ██ ██▀▀▀█▄
217-
██ ▀█▄ ██ ██ ██ ██ ██ ██
218-
▄██▄ ▀▀█▄▄▄█▀ ▄██▄ ▄██▄▄▄█▀ ▄██▄▄▄█▀
219-
220-
IOTDB#(127.0.0.1:6667)> SHOW STORAGE GROUP
221-
+---------------+
222-
| storage group |
223-
+---------------+
224-
| root.ln |
225-
| root.sg1 |
226-
+---------------+
227-
```
228-
229-
3. Execute sql from the specified sql file
230-
231115
```shell
232116
$iotdb file tests/create_and_insert.sql
233117
Statements: [

0 commit comments

Comments
 (0)
This repository has been archived.