Skip to content

Commit

Permalink
[Langchain_community]: Corrected the imports to make them compatible …
Browse files Browse the repository at this point in the history
…with Sqlachemy <2.0 (langchain-ai#17653)

- Small Change in Imports in sql_database module to make it work with
Sqlachemy <2.0
 - This was identified in the following issue: langchain-ai#17616
  • Loading branch information
keenborder786 authored Feb 16, 2024
1 parent 75465a2 commit 8d4547a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libs/community/langchain_community/utilities/sql_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@
from langchain_core._api import deprecated
from langchain_core.utils import get_from_env
from sqlalchemy import (
Executable,
MetaData,
Result,
Table,
create_engine,
inspect,
select,
text,
)
from sqlalchemy.engine import Engine
from sqlalchemy.engine import Engine, Result
from sqlalchemy.exc import ProgrammingError, SQLAlchemyError
from sqlalchemy.schema import CreateTable
from sqlalchemy.sql.expression import Executable
from sqlalchemy.types import NullType


Expand Down

0 comments on commit 8d4547a

Please sign in to comment.