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","."]
docstr: Get the list of tables in the Xata database.
docstr_tok: ["Get","the","list","of","tables","in","the","Xata","database","."]
code: def get_tables(self) -> HandlerResponse:
      """Get the list of tables in the Xata database."""
      try:
          table_names = pd.DataFrame(
              columns=["TABLE_NAME"],
              data=[
                  table_data["name"]
                  for table_data in self._client.branch().get_details()[
                      "schema"
                  ]["tables"]
              ],
          )
          return Response(
              resp_type=RESPONSE_TYPE.TABLE, data_frame=table_names
          )
      except Exception as e:
          return Response(
              resp_type=RESPONSE_TYPE.ERROR,
              error_message=f"Error getting list of tables: {e}",
          )
  
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 9 for calling the XataHandler obj's underlying member method code with example usage: obj.get_tables() and returns: Response, Response