ingest_datasource_models
Automatically discover database tables and create or additively update semantic models, preserving existing definitions while appending new columns and joins.
Instructions
Auto-discover tables in a database and create / additively update semantic models from them.
Idempotent (DEV-1356): re-runs are additive only. New columns and joins
are appended to existing models; existing column / join definitions
are never overwritten. After the additive pass, returns the pending
validate_models deletes alongside the additions.
Args: datasource_name: Name of an existing datasource (from list_datasources). include_tables: Comma-separated list of table names to include. If empty, all tables are ingested. schema_name: A single database schema to inspect (e.g. "public"). Empty uses the default schema. schemas: Comma-separated schemas to inspect. Mutually exclusive with schema_name / all_schemas. all_schemas: Ingest every non-system schema. Mutually exclusive with schema_name / schemas.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schemas | No | ||
| all_schemas | No | ||
| schema_name | No | ||
| include_tables | No | ||
| datasource_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |