catalog_workspace_content.

store_ldm_to_disk

store_ldm_to_disk(workspace_id: str, path: Path = Path.cwd())

Stores the declarative logical data model for a given workspace in directory hierarchy. This method does not tie the LDM to the workspace and organization, thus it is recommended for migration between organizations. If you want to backup LDM use store_declarative_ldm.

The directory structure below shows the output for the path set to Path("ldm_location").

    ldm_location
            └── ldm
                    ├── datasets
                    │       └── dataset.yaml
                    └── date_instances
                            └── date_instance.yaml

Parameters

nametypedescription
workspace_idstringWorkspace identification string e.g. "demo"
pathOptional[Path]Path to the root of the layout directory. Defaults to Path.cwd().

Returns

None

Example

# store the logical data model
sdk.catalog_workspace_content.store_ldm_to_disk(workspace_id="123",path=Path.cwd())