Skip to main content

datacontract import sql

Import a data contract from a SQL DDL file.

datacontract import sql [OPTIONS]
OptionDefaultDescription
--sourcePath to the SQL DDL file.
--dialectThe SQL dialect.
--outputFile path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--json-schemaThe location (url or path) of the ODCS JSON Schema
--ownerThe owner or team responsible for managing the data contract.
--idThe identifier for the data contract.
--debug / --no-debugEnable debug logging
datacontract import sql --source ddl.sql --dialect postgres --output datacontract.yaml

Guide: Import: SQL DDL.