class_docstr: This handler handles connection and execution of the Teradata statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Teradata","statements","."]
docstr: Handles the connection to a Teradata database insance.
docstr_tok: ["Handles","the","connection","to","a","Teradata","database","insance","."]
code: def connect(self):
      """
      Handles the connection to a Teradata database insance.
      """
  
      if self.is_connected is True:
          return self.connection
  
      connection = teradatasql.connect(**self.connection_data)
  
      self.is_connected = True
      self.connection = connection
      return self.connection
  
imports: from textwrap import dedent
  from collections import OrderedDict
  from pandas import DataFrame
  from sqlalchemy import String
  from sqlalchemy.sql import text, bindparam
  import teradatasql
  import teradatasqlalchemy.dialect
  from mindsdb_sql import parse_sql
  from mindsdb_sql.parser.ast.base import ASTNode
  from mindsdb_sql.render.sqlalchemy_render import SqlalchemyRender
  from mindsdb.utilities import log
  from mindsdb.integrations.libs.base import DatabaseHandler
  from mindsdb.integrations.libs.response import HandlerStatusResponse, HandlerResponse, RESPONSE_TYPE
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
label_desc: Use image node_id 3 for calling the TeradataHandler obj's underlying member method code with example usage: obj.connect() and returns: self, self