Skip to content

inspectTable ​

Command: inspectTable
Category: Object Inspection
Status: Production Ready

Description ​

Return metadata about a DB table

Syntax ​

bash
hana-cli inspectTable [schema] [table] [options]

Aliases ​

  • it
  • table
  • insTbl
  • inspecttable
  • inspectable

Command Diagram ​

Parameters ​

Positional Arguments ​

ParameterTypeDescription
schemastringTarget schema (optional positional input).
tablestringTable name (optional positional input).

Options ​

OptionAliasTypeDefaultDescription
--table-tstring-Table name to inspect.
--schema-sstring**CURRENT_SCHEMA**Schema that contains the table.
--output-ostringtblOutput format. Choices include tbl, sql, cds, json, yaml, cdl, edm, edmx, openapi, graphql, sqlite, postgres, hdbtable, hdbmigrationtable, hdbcds, swgr, annos, jsdoc.
--useHanaTypes--hanabooleanfalsePrefer HANA-native data types in generated artifacts.
--useExists--exists, --persistencebooleantrueInclude persistence annotations when generating model artifacts.
--useQuoted-q, --quotedbooleanfalseQuote identifiers in generated output.
--noColons-booleanfalseOmit colons in selected generated output formats.

Examples ​

Basic Usage ​

bash
hana-cli inspectTable --table myTable --schema MYSCHEMA

Execute the command

SQL Definition Output ​

bash
hana-cli inspectTable --table myTable --schema MYSCHEMA --output sql

Display the table definition in SQL format.


inspectTableUI (UI Variant) ​

Command: inspectTableUI
Status: Production Ready

Description: Execute inspectTableUI command - UI version for inspecting table metadata

Syntax:

bash
hana-cli inspectTableUI [schema] [table] [options]

Aliases:

  • itui
  • tableUI
  • tableui
  • insTblUI
  • inspecttableui
  • inspectableui

Parameters:

For a complete list of parameters and options, use:

bash
hana-cli inspectTableUI --help

Example Usage:

bash
hana-cli inspectTableUI

Execute the command

See Also ​