langchain/libs/community/tests/integration_tests
Eugene Yurtsev cd52433ba0
community[minor]: Add SQLDatabaseLoader document loader (#18281)
- **Description:** A generic document loader adapter for SQLAlchemy on
top of LangChain's `SQLDatabaseLoader`.
  - **Needed by:** https://github.com/crate-workbench/langchain/pull/1
  - **Depends on:** GH-16655
  - **Addressed to:** @baskaryan, @cbornet, @eyurtsev

Hi from CrateDB again,

in the same spirit like GH-16243 and GH-16244, this patch breaks out
another commit from https://github.com/crate-workbench/langchain/pull/1,
in order to reduce the size of this patch before submitting it, and to
separate concerns.

To accompany the SQLAlchemy adapter implementation, the patch includes
integration tests for both SQLite and PostgreSQL. Let me know if
corresponding utility resources should be added at different spots.

With kind regards,
Andreas.


### Software Tests

```console
docker compose --file libs/community/tests/integration_tests/document_loaders/docker-compose/postgresql.yml up
```

```console
cd libs/community
pip install psycopg2-binary
pytest -vvv tests/integration_tests -k sqldatabase
```

```
14 passed
```



![image](https://github.com/langchain-ai/langchain/assets/453543/42be233c-eb37-4c76-a830-474276e01436)

---------

Co-authored-by: Andreas Motl <andreas.motl@crate.io>
2024-02-28 21:02:28 +00:00
..
adapters community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
callbacks infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
chat_message_histories infra: add -p to mkdir in lint steps (#17013) 2024-02-05 11:22:06 -08:00
chat_models community[minor]: add Kinetica LLM wrapper (#17879) 2024-02-22 16:02:00 -08:00
document_loaders community[minor]: Add SQLDatabaseLoader document loader (#18281) 2024-02-28 21:02:28 +00:00
embeddings community: Add Laser Embedding Integration (#18111) 2024-02-26 12:16:37 -08:00
examples infra: add print rule to ruff (#16221) 2024-02-09 16:13:30 -08:00
graphs community[patch]: Resolve KuzuQAChain API Changes (#16885) 2024-02-15 10:18:37 -08:00
indexes community: Add document manager and mongo document manager (#17320) 2024-02-23 21:32:52 -05:00
llms community[minor]: Add SparkLLM to community (#17702) 2024-02-20 11:23:47 -08:00
retrievers infra: fix breebs test lint (#17075) 2024-02-05 16:09:48 -08:00
storage community[minor]: Add async methods to the AstraDB BaseStore (#16872) 2024-02-19 10:11:49 -08:00
tools community[minor]: Connery Tool and Toolkit (#14506) 2024-01-29 12:45:03 -08:00
utilities community[patch]: Fix github search issues and PRs PaginatedList has no len() error (#16806) 2024-02-12 19:50:59 -08:00
vectorstores Langchain vectorstore integration with Kinetica (#18102) 2024-02-26 12:46:48 -08:00
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
.env.example community[minor]: add Kinetica LLM wrapper (#17879) 2024-02-22 16:02:00 -08:00
conftest.py infra: Use dotenv in langchain-community's integration tests (#16137) 2024-01-17 18:18:26 -08:00
test_compile.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00