Skip to main content

datacontract import postgres

Import a data contract from a Postgres schema.

datacontract import postgres [OPTIONS]
OptionDefaultDescription
--source—The host of the Postgres server.
--port—The Postgres port (default 5432).
--database—The database name.
--schema—The Postgres schema name (default public).
--table—Name of a table to import (repeat for multiple tables, omit for all tables in the schema).
--output—File path where the Data Contract will be saved. If not provided, it will be printed to stdout.
--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 postgres --source localhost --database postgres --schema public --output datacontract.yaml

Guide: Import: Postgres.