inspect
tonic inspect reads database metadata from saved targets and uses the same target/context runtime as query execution.
Commands
Section titled “Commands”tonic inspect catalogs --target warehousetonic inspect namespaces --target warehousetonic inspect tables --target warehousetonic inspect views --target warehousetonic inspect columns reports.daily_sales --target warehousetonic inspect view-definition reports.daily_sales_view --target warehousetonic inspect ddl reports.daily_sales --target warehouse --type tableAliases:
catalogs:databases,dbsnamespaces:schemasddl --type database:catalogddl --type schema:namespace
Context
Section titled “Context”Inspect commands accept repeated --context key=value flags.
tonic inspect tables \ --target warehouse \ --context catalog=ANALYTICS \ --context namespace=PUBLICPublic inspect scope keys are catalog and namespace. Backend aliases such as database and schema are accepted where supported.
Lists And Definitions
Section titled “Lists And Definitions”List commands support --format table|csv|json:
tonic inspect columns orders --target warehouse --format jsonDefinition commands support --format text|json:
tonic inspect view-definition orders_view --target warehouse --format texttonic inspect ddl orders --target warehouse --type table --format jsonCache And Refresh
Section titled “Cache And Refresh”Inspect metadata is cached persistently in a local SQLite database. The default TTL is seven days.
Use --refresh to bypass cache reads and rewrite the cache with live metadata:
tonic inspect tables --target warehouse --refreshCache read or write failures are non-fatal; tonic falls back to live metadata when needed.
Object Names
Section titled “Object Names”Object references are unquoted dot paths:
namenamespace.namecatalog.namespace.name
Quoted identifiers such as "Mixed Case"."Table Name" are currently out of scope.