diff --git a/pyproject.toml b/pyproject.toml index 20e403ac7..62cedba52 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "viadot2" -version = "2.1.23" +version = "2.1.24" description = "A simple data ingestion library to guide data flows from some places to other places." authors = [ { name = "acivitillo", email = "acivitillo@dyvenia.com" }, diff --git a/src/viadot/sources/base.py b/src/viadot/sources/base.py index 05443a6fa..4c021ec98 100644 --- a/src/viadot/sources/base.py +++ b/src/viadot/sources/base.py @@ -212,6 +212,14 @@ def conn_str(self) -> str: if "authentication" in self.credentials: conn_str += "Authentication=" + self.credentials["authentication"] + ";" + if "trust_server_certificate" in self.credentials: + conn_str += ( + "TrustServerCertificate=" + + self.credentials["trust_server_certificate"] + + ";" + ) + if "encrypt" in self.credentials: + conn_str += "Encrypt=" + self.credentials["encrypt"] + ";" return conn_str @property