Skip to main content

datacontract import trino

Import a data contract from a Trino catalog.

datacontract import trino [OPTIONS]
OptionDefaultDescription
--sourceThe host of the Trino coordinator.
--portThe Trino port (default 8080).
--catalogThe Trino catalog.
--schemaThe Trino schema.
--tableName of a table to import (repeat for multiple tables, omit for all tables).
--outputFile path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--ownerThe owner or team responsible for managing the data contract.
--idThe identifier for the data contract.
--debug / --no-debugEnable debug logging
datacontract import trino --source localhost --catalog my_catalog --schema my_schema --output datacontract.yaml

Guide: Import: Trino.