mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-28 09:28:48 +00:00
community[patch]: Fix alternative name in deprecation notice for sql_database (#21144)
This commit is contained in:
parent
2a6f78a53f
commit
4d1c21d97d
@ -283,7 +283,7 @@ class SQLDatabase:
|
|||||||
return sorted(self._include_tables)
|
return sorted(self._include_tables)
|
||||||
return sorted(self._all_tables - self._ignore_tables)
|
return sorted(self._all_tables - self._ignore_tables)
|
||||||
|
|
||||||
@deprecated("0.0.1", alternative="get_usable_table_name", removal="0.2.0")
|
@deprecated("0.0.1", alternative="get_usable_table_names", removal="0.2.0")
|
||||||
def get_table_names(self) -> Iterable[str]:
|
def get_table_names(self) -> Iterable[str]:
|
||||||
"""Get names of tables available."""
|
"""Get names of tables available."""
|
||||||
return self.get_usable_table_names()
|
return self.get_usable_table_names()
|
||||||
|
Loading…
Reference in New Issue
Block a user