UNPKG

hana-cli

Version:
78 lines (52 loc) 1.56 kB
# inspectIndex > Command: `inspectIndex` > Category: **System Tools** > Status: Production Ready ## Description Return metadata about an index. ## Syntax ```bash hana-cli inspectIndex [schema] [index] [options] ``` ## Command Diagram ```mermaid graph TD Start([hana-cli inspectIndex]) --> Inputs[Read schema/index] Inputs --> QueryIndex[Query INDEXES metadata] QueryIndex --> QueryCols[Query INDEX_COLUMNS metadata] QueryCols --> Output[Render index and column details] Output --> Complete([Command Complete]) style Start fill:#0092d1 style Complete fill:#2ecc71 ``` ## Aliases - `ii` - `index` - `insIndex` - `inspectindex` ## Parameters ### Positional Arguments | Parameter | Type | Description | |-----------|------|-------------| | `schema` | string | Schema name (optional) | | `index` | string | Index name (optional) | ### Options | Option | Alias | Type | Default | Description | |--------|-------|------|---------|-------------| | `--index` | `-i` | string | - | Index name | | `--schema` | `-s` | string | `**CURRENT_SCHEMA**` | Schema name | For a complete list of parameters and options, use: ```bash hana-cli inspectIndex --help ``` ## Examples ### Basic Usage ```bash hana-cli inspectIndex --index myIndex --schema MYSCHEMA ``` Show index definition and indexed columns. ## Related Commands See the [Commands Reference](../all-commands.md) for other commands in this category. ## See Also - [Category: System Tools](..) - [All Commands A-Z](../all-commands.md)