class_docstr: Load tables from different files and serve a sql database for database operations
docstr: Args:
      files: list of files (list[file path, name])
      sql_path: how to serve the sql database
      **kwargs: keyword type arguments, useful for certain document types 
code: def __init__(
      self,
      files: str,
      sql_path: str = "sqlite:///mydatabase.db",
      verbose=False,
      **kwargs,
  ) -> None:
      """
      Args:
          files: list of files (list[file path, name])
          sql_path: how to serve the sql database
          **kwargs: keyword type arguments, useful for certain document types
      """
      self.data = {}
      self.verbose = verbose
      self.sql_path = sql_path
      self.kwargs = kwargs
      self.sql_engine = create_engine(self.sql_path)
      drop_table(self.sql_engine)
  
      self.sql_engine = create_engine(self.sql_path)
      for item in files:
          path = item[0]
          dataset_name = item[1]
          if not os.path.exists(path):
              raise FileNotFoundError(f"{path} doesn't exists")
          if not any([path.endswith(i) for i in SUPPORTED_DATA_FORMAT]):
              raise TypeError(
                  f"{path} not supported. Supported type {SUPPORTED_DATA_FORMAT}"
              )
  
          logger.info("loading data", verbose=self.verbose)
          self.load_data(path)
          logger.info("data loaded", verbose=self.verbose)
          self.to_sql(path, dataset_name)
  
file_path: ColossalAI/applications/ColossalQA/colossalqa/data_loader/table_dataloader.py
imports: import os
  import glob
  import pandas
  from sqlalchemy import create_engine
  from colossalqa.utils import drop_table
  from colossalqa.mylogging import get_logger
label_desc: Use image node_id 1 to create a new TableLoader object  with example: obj = TableLoader(files, sql_path, verbose)