You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/experimental/langchain_experimental
Eugene Yurtsev 780e84ae79
community[minor]: SQLDatabase Add fetch mode `cursor`, query parameters, query by selectable, expose execution options, and documentation (#17191)
- **Description:** Improve `SQLDatabase` adapter component to promote
code re-use, see
[suggestion](https://github.com/langchain-ai/langchain/pull/16246#pullrequestreview-1846590962).
  - **Needed by:** GH-16246
  - **Addressed to:** @baskaryan, @cbornet 

## Details
- Add `cursor` fetch mode
- Accept SQL query parameters
- Accept both `str` and SQLAlchemy selectables as query expression
- Expose `execution_options`
- Documentation page (notebook) about `SQLDatabase` [^1]
See [About
SQLDatabase](https://github.com/langchain-ai/langchain/blob/c1c7b763/docs/docs/integrations/tools/sql_database.ipynb).

[^1]: Apparently there hasn't been any yet?

---------

Co-authored-by: Andreas Motl <andreas.motl@crate.io>
8 months ago
..
agents docs: fix docstring examples (#16889) 8 months ago
autonomous_agents experimental[patch]: fixed import in `experimental` (#17078) 8 months ago
chat_models docs, community[patch], experimental[patch], langchain[patch], cli[pa… (#15412) 9 months ago
comprehend_moderation
cpal docs, experimental[patch], langchain[patch], community[patch]: update storage imports (#15429) 9 months ago
data_anonymizer experimental[patch]: missing resolution strategy in anonymization (#16653) 8 months ago
fallacy_removal docs, community[patch], experimental[patch], langchain[patch], cli[pa… (#15412) 9 months ago
generative_agents langchain[patch], experimental[patch]: replace langchain.schema imports (#15410) 9 months ago
graph_transformers docs, experimental[patch], langchain[patch], community[patch]: update storage imports (#15429) 9 months ago
llm_bash langchain[patch], experimental[patch]: update utilities imports (#15438) 9 months ago
llm_symbolic_math docs, community[patch], experimental[patch], langchain[patch], cli[pa… (#15412) 9 months ago
llms docs, community[patch], experimental[patch], langchain[patch], cli[pa… (#15412) 9 months ago
open_clip langchain[patch], experimental[patch]: replace langchain.schema imports (#15410) 9 months ago
openai_assistant
pal_chain langchain[patch], experimental[patch]: update utilities imports (#15438) 9 months ago
plan_and_execute langchain[patch], experimental[patch]: replace langchain.schema imports (#15410) 9 months ago
prompt_injection_identifier docs: docstrings `langchain_community` update (#14889) 10 months ago
prompts community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 10 months ago
pydantic_v1
retrievers
rl_chain
smart_llm experimental[patch]: SmartLLMChain Output Key Customization (#14466) 10 months ago
sql community[minor]: SQLDatabase Add fetch mode `cursor`, query parameters, query by selectable, expose execution options, and documentation (#17191) 8 months ago
synthetic_data langchain[patch], experimental[patch]: replace langchain.schema imports (#15410) 9 months ago
tabular_synthetic_data docs, community[patch], experimental[patch], langchain[patch], cli[pa… (#15412) 9 months ago
tools Propagate context vars in all classes/methods 9 months ago
tot
utilities
__init__.py
py.typed
text_splitter.py experimental[patch]: Fixes issue #17060 (#17062) 8 months ago