code: def connect(self):
          
          connection = _mssql.connect(user=self.user,
                                      password=self.password,
                                      server=self.host,
                                      port=self.port,
                                      database=self.database)
          return connection
docs: Create a SQL Server connection and return a connection object