(self, base_connection_params)
| 67 | } |
| 68 | |
| 69 | def add_optional_connection_params(self, base_connection_params): |
| 70 | if self.encrypt: |
| 71 | base_connection_params[u'Encrypt'] = self.encrypt |
| 72 | if self.trust_server_certificate: |
| 73 | base_connection_params[u'TrustServerCertificate'] = self.trust_server_certificate |
| 74 | if self.connection_timeout: |
| 75 | base_connection_params[u'ConnectTimeout'] = self.connection_timeout |
| 76 | if self.application_intent: |
| 77 | base_connection_params[u'ApplicationIntent'] = self.application_intent |
| 78 | if self.multi_subnet_failover: |
| 79 | base_connection_params[u'MultiSubnetFailover'] = self.multi_subnet_failover |
| 80 | if self.packet_size: |
| 81 | base_connection_params[u'PacketSize'] = self.packet_size |
| 82 | |
| 83 | base_connection_params.update(self.extra_params) |
| 84 | |
| 85 | return base_connection_params |
| 86 | |
| 87 | def connect_to_database(self): |
| 88 | connection_params = self.get_base_connection_params() |
no test coverage detected