Imports
datacontract import creates a data contract from an existing source format. This is the fastest way to bootstrap a contract from a system you already have.
# Import from a SQL DDL file
datacontract import sql --source my_ddl.sql --dialect postgres
# Save the result to a file
datacontract import sql --source my_ddl.sql --dialect postgres --output datacontract.yaml
Run datacontract import <format> --help to see the format-specific options (e.g. datacontract import sql --help). If a format you need is missing, open an issue on GitHub.
Available importers
See the import command reference for the common signature.