From 759e530ca3d60fcaf36f163fb8b82e4f2330fa65 Mon Sep 17 00:00:00 2001 From: Aaron Steers Date: Thu, 12 Sep 2024 13:27:39 -0700 Subject: [PATCH] add version detection for declarative source --- airbyte/_executors/declarative.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/airbyte/_executors/declarative.py b/airbyte/_executors/declarative.py index 554f520c..dd331537 100644 --- a/airbyte/_executors/declarative.py +++ b/airbyte/_executors/declarative.py @@ -64,6 +64,16 @@ def __init__( self.reported_version: str | None = self._manifest_dict.get("version", None) + def get_installed_version( + self, + *, + raise_on_error: bool = False, + recheck: bool = False, + ) -> str | None: + """Detect the version of the connector installed.""" + _ = raise_on_error, recheck # Not used + return self.reported_version + def _validate_manifest(self, manifest_dict: dict) -> None: """Validate the manifest.""" manifest_text = yaml.safe_dump(manifest_dict)