-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Naomi Slater
committed
Apr 21, 2018
1 parent
65afd79
commit dbfcb05
Showing
11 changed files
with
448 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.. _commands: | ||
|
||
======== | ||
Commands | ||
======== | ||
|
||
Crash has several built-in client commands that you can run from the prompt. | ||
|
||
Every command starts with a ``\`` character. | ||
|
||
+------------------------+-----------------------------------------------------+ | ||
| Command | Description | | ||
+========================+=====================================================+ | ||
| ``\?`` | List all available commands. | | ||
+------------------------+-----------------------------------------------------+ | ||
| | ``\c <HOSTS>``, | Connect to ``<HOSTS>``. | | ||
| | ``\connect <HOSTS>`` | | | ||
| | | | ||
| | Same as ``--hosts`` command line option. | | ||
| | | | ||
| | ``HOSTS`` can be a single host, or it can be a | | ||
| | space separated list of hosts. | | ||
| | | | ||
| | If multiple hosts are specified, Crash will attempt | | ||
| | to connect to all of them. The command will succeed | | ||
| | if at least one connection is successful. | | ||
+------------------------+-----------------------------------------------------+ | ||
| ``\dt`` | Print a list of tables. | | ||
| | | | ||
| | The list does not include tables in the ``sys`` and | | ||
| | ``information_schema`` schema. | | ||
+------------------------+-----------------------------------------------------+ | ||
| ``\format <FORMAT>`` | Specifies the output format of the SQL response. | | ||
| | | | ||
| | Same as ``--format`` command line option. | | ||
| | | | ||
| | Available ``<FORMAT>`` values are: ``tabular``, | | ||
| | ``raw``, ``json``, ``json_row``, ``csv`` and | | ||
| | ``mixed``. | | ||
+------------------------+-----------------------------------------------------+ | ||
| ``\q`` | Quit the CrateDB shell. | | ||
+------------------------+-----------------------------------------------------+ | ||
| ``\check <TYPE>`` | Query the ``sys`` tables for failing checks. | | ||
| | | | ||
| | ``TYPE`` can be one of the following: | | ||
| | | | ||
| | - not set (query for failing cluster and node | | ||
| | checks) | | ||
| | - ``nodes`` (query for failing node checks) | | ||
| | - ``cluster`` (query for failing cluster checks) | | ||
+------------------------+-----------------------------------------------------+ | ||
| ``\r <FILENAME>`` | Reads statements from ``<FILENAME>`` and execute | | ||
| | them. | | ||
+------------------------+-----------------------------------------------------+ | ||
| ``\sysinfo`` | Query the ``sys`` tables for system and cluster | | ||
| | information. | | ||
+------------------------+-----------------------------------------------------+ | ||
| ``\autocomplete`` | Turn autocomplete feature on or off. | | ||
| | | | ||
| | Works as a toggle. | | ||
+------------------------+-----------------------------------------------------+ | ||
| ``\autocapitalize`` | Turn automatic capitalization for SQL keywords or | | ||
| | off. | | ||
| | | | ||
| | Works as a toggle. | | ||
+------------------------+-----------------------------------------------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.. _compatibility: | ||
|
||
============= | ||
Compatibility | ||
============= | ||
|
||
.. CAUTION:: | ||
|
||
We recommend that you upgrade to the latest stable version of CrateDB | ||
whenever possible. And we also recommend that you use the version of Crash | ||
that is bundled with the version of CrateDB that you are using. This | ||
greatly minimises the chances of experiencing compatibility issues. | ||
|
||
CrateDB tries to maintain `backwards`_ and `forwards`_ compatibility. However, | ||
this is not always possible. | ||
|
||
Known compatibility issues: | ||
|
||
- Due to `information schema`_ changes, Crash versions 0.19 and earlier | ||
are not compatible with CrateDB versions 0.57 and later. | ||
|
||
- For CrateDB versions 0.38.x and earlier, it is not possible to insert nested | ||
arrays or nested objects via Crash. You must use `CrateDB REST endpoint`_ or a | ||
`client library`_. | ||
|
||
CrateDB versions 0.39 and later allow you to insert nested arrays using | ||
`array constructors`_, and nested objects using `object literals`_. | ||
|
||
- Crash client :ref:`commands <commands>` are only available since version 0.11 | ||
and later. | ||
|
||
.. _array constructors: https://crate.io/docs/crate/reference/en/latest/general/ddl/data-types.html#array-constructor | ||
.. _backwards: https://en.wikipedia.org/wiki/Backward_compatibility | ||
.. _client library: https://crate.io/docs/crate/getting-started/en/latest/start-building/index.html | ||
.. _CrateDB REST endpoint: https://crate.io/docs/crate/reference/en/latest/interfaces/http.html | ||
.. _forwards: https://en.wikipedia.org/wiki/Forward_compatibility | ||
.. _information schema: https://crate.io/docs/crate/reference/en/latest/general/information-schema.html | ||
.. _object literals: https://crate.io/docs/crate/reference/en/latest/general/ddl/data-types.html#object-literals |
File renamed without changes
Oops, something went wrong.