Skip to main content

datacontract import postgres

Import a data contract from a Postgres schema.

datacontract import postgres [OPTIONS]
OptionDefaultDescription
--sourceThe host of the Postgres server.
--portThe Postgres port (default 5432).
--databaseThe database name.
--schemaThe Postgres schema name (default public).
--tableName of a table to import (repeat for multiple tables, omit for all tables in the schema).
--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 postgres --source localhost --database postgres --schema public --output datacontract.yaml

Guide: Import: Postgres.