class_docstr: SQL connectors are used to connect to SQL databases in different dialects.
class_docstr_tok: ["SQL","connectors","are","used","to","connect","to","SQL","databases","in","different","dialects","."]
docstr: Loads passed Configuration to object
  
  Args:
      config (BaseConnectorConfig): Construct config in structure
  
  Returns:
      config: BaseConenctorConfig
docstr_tok: ["Loads","passed","Configuration","to","object","Args",":","config","(","BaseConnectorConfig",")",":","Construct","config","in","structure","Returns",":","config",":","BaseConenctorConfig"]
code: def _load_connector_config(
      self, config: Union[BaseConnectorConfig, dict]
  ):
      """
      Loads passed Configuration to object
  
      Args:
          config (BaseConnectorConfig): Construct config in structure
  
      Returns:
          config: BaseConenctorConfig
      """
      return SQLConnectorConfig(**config)
  
imports: import re
  import os
  import pandas
  from pandasai.exceptions import MaliciousQueryError
  from .base import BaseConnector, SQLConnectorConfig, SqliteConnectorConfig
  from .base import BaseConnectorConfig
  from sqlalchemy import create_engine, text, select, asc
  from sqlalchemy.engine import Connection
  from functools import cached_property, cache
  import hashlib
  from ..helpers.path import find_project_root
  from ..constants import DEFAULT_FILE_PERMISSIONS
  from typing import Union
  import time
label_desc: Use image node_id 2 for calling the SQLConnector obj's underlying member method code with example usage: obj._load_connector_config(config) and returns: SQLConnectorConfig