Skip to main content

datacontract import dbml

Import a data contract from a DBML file.

datacontract import dbml [OPTIONS]
OptionDefaultDescription
--source—Path to the DBML file.
--dbml-schema—List of schema names to import from the DBML file (repeat for multiple schema names, leave empty for all tables in the file).
--dbml-table—List of table names to import from the DBML file (repeat for multiple table names, leave empty for all tables in the file).
--output—File path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--json-schema—The location (url or path) of the ODCS JSON Schema
--owner—The owner or team responsible for managing the data contract.
--id—The identifier for the data contract.
--debug / --no-debug—Enable debug logging
datacontract import dbml --source schema.dbml --output datacontract.yaml

Guide: Import: DBML.