Get a specific model by name. Args: model_name: Name of the model to retrieve Returns: DbtModel if found, None otherwise
(self, model_name: str)
| 224 | return models |
| 225 | |
| 226 | def get_model_by_name(self, model_name: str) -> Optional[DbtModel]: |
| 227 | """ |
| 228 | Get a specific model by name. |
| 229 | |
| 230 | Args: |
| 231 | model_name: Name of the model to retrieve |
| 232 | |
| 233 | Returns: |
| 234 | DbtModel if found, None otherwise |
| 235 | """ |
| 236 | models = self.get_models(model_names=[model_name]) |
| 237 | return models[0] if models else None |
| 238 | |
| 239 | @property |
| 240 | def dbt_version(self) -> Optional[str]: |