Module loader

Module loader 

Source
Expand description

Model loading functionality

Loads models from storage backends, handling YAML parsing and validation.

Supports both file-based loading (FileSystemStorageBackend, BrowserStorageBackend) and API-based loading (ApiStorageBackend).

File structure:

  • Base directory (workspace_path)
    • Domain directories (e.g., domain1/, domain2/)
      • domain.yaml - Domain definition
      • {name}.odcs.yaml - ODCS table files
      • {name}.odps.yaml - ODPS product files
      • {name}.cads.yaml - CADS asset files
    • tables/ - Legacy: tables not in any domain (backward compatibility)

Structsยง

DomainLoadResult
Result of loading domains
ModelLoadResult
Result of loading a model
ModelLoader
Model loader that uses a storage backend
RelationshipData
Relationship data loaded from storage
TableData
Table data loaded from storage