Skip to main content

datacontract import dbml

Import a data contract from a DBML file.

datacontract import dbml [OPTIONS]
OptionDefaultDescription
--sourcePath to the DBML file.
--dbml-schemaList of schema names to import from the DBML file (repeat for multiple schema names, leave empty for all tables in the file).
--dbml-tableList of table names to import from the DBML file (repeat for multiple table names, leave empty for all tables in the file).
--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 dbml --source schema.dbml --output datacontract.yaml

Guide: Import: DBML.