Skip to content

inspectView ​

Command: inspectView
Category: Object Inspection
Status: Production Ready

Description ​

Return metadata about a DB view

Syntax ​

bash
hana-cli inspectView [schema] [view] [options]

Aliases ​

  • iv
  • view
  • insVew
  • inspectview

Command Diagram ​

Parameters ​

Positional Arguments ​

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

Options ​

OptionAliasTypeDefaultDescription
--view-vstring-View name to inspect.
--schema-sstring**CURRENT_SCHEMA**Schema that contains the view.
--output-ostringtblOutput format. Choices include tbl, sql, cds, json, yaml, cdl, edm, edmx, openapi, graphql, sqlite, postgres, hdbview, 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 inspectView --view myView --schema MYSCHEMA

Execute the command

SQL Definition Output ​

bash
hana-cli inspectView --view myView --schema MYSCHEMA --output sql

Display the view definition in SQL format.

See Also ​