Invicto69 commited on
Commit
dfefc06
·
verified ·
1 Parent(s): d7a0e7b

Synced repo using 'sync_with_huggingface' Github Action

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -50,7 +50,7 @@ def validate_uri(uri:str) -> bool:
50
  except Exception as e:
51
  return False
52
 
53
- def get_info(uri:str) -> dict[str, str] | None:
54
  """Gets the dialect name, accessible tables and table schemas using the SQLDatabase toolkit"""
55
  db = SQLDatabase.from_uri(uri)
56
  dialect = db.dialect
@@ -120,7 +120,7 @@ def get_unique_values(engine:Engine, table:Table) -> str:
120
 
121
  return output_str
122
 
123
- def get_info_sqlalchemy(uri:str) -> dict[str, str] | None:
124
  """Gets the dialect name, accessible tables and table schemas using the SQLAlchemy engine"""
125
  engine = create_engine(uri)
126
  # Get dialect name using inspector
 
50
  except Exception as e:
51
  return False
52
 
53
+ def get_info(uri:str) -> dict:
54
  """Gets the dialect name, accessible tables and table schemas using the SQLDatabase toolkit"""
55
  db = SQLDatabase.from_uri(uri)
56
  dialect = db.dialect
 
120
 
121
  return output_str
122
 
123
+ def get_info_sqlalchemy(uri:str) -> dict:
124
  """Gets the dialect name, accessible tables and table schemas using the SQLAlchemy engine"""
125
  engine = create_engine(uri)
126
  # Get dialect name using inspector