You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL CLI is a stand alone Python application and can be launched by a wake word `escli`. It serves as a support only for
5
-
[Open Distro SQL plugin for Elasticsearch](https://opendistro.github.io/for-elasticsearch-docs/docs/sql/). You can move
6
-
it around to other machines without having to install Elasticsearch on them.
5
+
ODFE SQL CLI is a stand alone Python application and can be launched by a wake word `odfesql`. It serves as a support only for
6
+
[Open Distro SQL plugin for Elasticsearch](https://opendistro.github.io/for-elasticsearch-docs/docs/sql/). You can run
7
+
it on any OS we support, and connect to any valid remote endpoint without installing Elasticsearch.
7
8
8
9
9
10
## Installation
10
-
-`pip install escli`
11
-
-escli is compatible with Python 3, and python 2 is going away soonhttps://pythonclock.org/
11
+
-`pip install odfesql`
12
+
-odfe sql cli is compatible with Python 3, because Python 2 is no longer maintained since 01/01/2020https://pythonclock.org/
12
13
13
14
14
15
## Configuration
@@ -25,10 +26,11 @@ See the file itself for a description of all available options.
25
26
- Enable horizontal display (by default) and vertical display when output is too wide
26
27
- Pagination for long output
27
28
- Syntax highlighting
28
-
- Connect to Elasticsearch node/cluster with authentication on either ES localhost, Open Distro ES, or AES,
29
+
- Connect to Elasticsearch node/cluster with/without security on either **ES localhost, Open Distro ES, or AWS Elasticsearch Domain**.
30
+
Refer to [test plan](./tests/test_plan.md) on how to connect to different instance with/without security
29
31
- Load Config file
30
32
- Run single query from Command Line with parameters
31
-
-*endpoint:* no need to specify a parameter, anything follow by wake word `escli` should be the endpoint.
33
+
-*endpoint:* no need to specify a parameter, anything follow by wake word `odfesql` should be the endpoint.
32
34
By default, it’s http://localhost:9200
33
35
-*--help:* help page for options and params
34
36
-*-q:* follow by a single query user wants to run.
@@ -45,7 +47,8 @@ See the file itself for a description of all available options.
45
47
46
48
47
49
## Basic Usage
48
-

50
+
- The CLI supports all types of query that ODFE SQL supports. See [ODFE SQL basic usage](https://github.com/opendistro-for-elasticsearch/sql#basic-usage)
51
+
-
49
52
50
53
51
54
@@ -69,30 +72,3 @@ See the [LICENSE](./LICENSE.TXT) file for our project's licensing. We will ask y
69
72
## Copyright
70
73
71
74
Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
72
-
73
-
74
-
75
-
## Development Guide
76
-
### Build the application in development
77
-
-`pip install virtualenv`
78
-
-`virtualenv venv` to create virtual environment for **Python 3**
1. Register an account on [PyPI](https://pypi.org/), note that these are two separate servers and the credentials from the test server are not shared with the main server.
53
+
2. Use `twine upload dist/*` to upload your package and enter your credentials for the account you registered on PyPI.
54
+
8. Install your package from PyPI using `pip install [your-package-name]`
The purpose of this checklist is to guide you through the basic usage of ODFE SQL CLI, as well as a manual test process.
3
+
4
+
## Display
5
+
*[ ] Test pagination with different output length / width.
6
+
*[ ] Test table formatted output.
7
+
*[ ] Test successful conversion from horizontal to vertical display with confirmation.
8
+
*[ ] Test warning message when output > 200 rows of data. (Limited by ODFE SQL syntax)
9
+
10
+
11
+
## Connection
12
+
*[ ] Test connection to a local Elasticsearch instance
13
+
*[ ] Standard Elastic version, with/without authentication by [X-pack security](https://www.elastic.co/guide/en/elasticsearch/reference/7.6/security-getting-started.html)
14
+
*[ ] OSS version, no authentication
15
+
*[ ] OSS version, install [ODFE Security plugin](https://opendistro.github.io/for-elasticsearch-docs/docs/install/plugins/) to enable authentication and SSL
16
+
*[ ] Test connection to [AWS Elasticsearch domain](https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-gsg.html) (with ODFE SQL plugin installed by default)
17
+
*[ ] Test connection fail when connecting to invalid endpoint
18
+
*[ ] Test reconnection when connection lost during execution
19
+
20
+
21
+
## Execution
22
+
*[ ] Test successful execution given a query
23
+
*[ ] Test unsuccessful execution with an invalid SQL query
24
+
*[ ] Test load config file
25
+
26
+
27
+
## Nested commands with params
28
+
*[ ] Test dump query result to a file
29
+
*[ ] Test explain option `-e`
30
+
*[ ] Test query and format option `-q`, `-f`
31
+
*[ ] Test vertical option `-v`
32
+
33
+
34
+
## OS and Python compatibility
35
+
*[ ] Manually test on Linux(Ubuntu), Windows and mac-os.
0 commit comments