-
Notifications
You must be signed in to change notification settings - Fork 15.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Based on previous contributions, this has effectively become just a naming-things wrapper around `SQLDatabaseLoader`.
- Loading branch information
Showing
8 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
libs/community/langchain_community/document_loaders/cratedb.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from langchain_community.document_loaders.sql_database import SQLDatabaseLoader | ||
|
||
|
||
class CrateDBLoader(SQLDatabaseLoader): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
libs/community/tests/integration_tests/document_loaders/docker-compose/cratedb.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: "3" | ||
|
||
services: | ||
postgresql: | ||
image: crate/crate:nightly | ||
environment: | ||
- CRATE_HEAP_SIZE=4g | ||
ports: | ||
- "4200:4200" | ||
- "5432:5432" | ||
command: | | ||
crate -Cdiscovery.type=single-node | ||
healthcheck: | ||
test: | ||
[ | ||
"CMD-SHELL", | ||
"curl --silent --fail http://localhost:4200/ || exit 1", | ||
] | ||
interval: 5s | ||
retries: 60 |
19 changes: 19 additions & 0 deletions
19
libs/community/tests/integration_tests/document_loaders/docker-compose/postgresql.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version: "3" | ||
|
||
services: | ||
postgresql: | ||
image: postgres:16 | ||
environment: | ||
- POSTGRES_HOST_AUTH_METHOD=trust | ||
ports: | ||
- "5432:5432" | ||
command: | | ||
postgres -c log_statement=all | ||
healthcheck: | ||
test: | ||
[ | ||
"CMD-SHELL", | ||
"psql postgresql://postgres@localhost --command 'SELECT 1;' || exit 1", | ||
] | ||
interval: 5s | ||
retries: 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters