class_docstr: This handler handles connection and execution of the Xata statements.
class_docstr_tok: ["This","handler","handles","connection","and","execution","of","the","Xata","statements","."]
code: def __init__(self, name: str, **kwargs):
      super().__init__(name)
      self._connection_data = kwargs.get("connection_data")
      self._client_config = {
          "db_url": self._connection_data.get("db_url"),
          "api_key": self._connection_data.get("api_key"),
      }
      self._create_table_params = {
          "dimension": self._connection_data.get("dimension", 8),
      }
      self._select_params = {
          "similarity_function": self._connection_data.get(
              "similarity_function", "cosineSimilarity"
          ),
      }
      self._client = None
      self.is_connected = False
      self.connect()
  
imports: from collections import OrderedDict
  from typing import List, Optional
  import pandas
  import json
  import xata
  from xata.helpers import BulkProcessor
  from mindsdb.integrations.libs.const import HANDLER_CONNECTION_ARG_TYPE
  from mindsdb.integrations.libs.response import RESPONSE_TYPE
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerResponse
  from mindsdb.integrations.libs.response import HandlerStatusResponse
  from mindsdb.integrations.libs.vectordatabase_handler import FilterCondition, FilterOperator, TableField, VectorStoreHandler
  from mindsdb.utilities import log
label_desc: Use image node_id 1 to create a new XataHandler object from inherited base classes: VectorStoreHandler with example: obj = XataHandler(name)