Class that represents a SQL database chain in the LangChain framework.
It extends the BaseChain class and implements the functionality
specific to a SQL database chain.
Security
Security Notice
This chain generates SQL queries for the given database.
The SQLDatabase class provides a getTableInfo method that can be used
to get column information as well as sample data from the table.
To mitigate risk of leaking sensitive data, limit permissions
to read and scope to the tables that are needed.
Optionally, use the includesTables or ignoreTables class parameters
to limit which tables can/cannot be accessed.
Class that represents a SQL database chain in the LangChain framework. It extends the BaseChain class and implements the functionality specific to a SQL database chain.
Security
Security Notice This chain generates SQL queries for the given database. The SQLDatabase class provides a getTableInfo method that can be used to get column information as well as sample data from the table. To mitigate risk of leaking sensitive data, limit permissions to read and scope to the tables that are needed. Optionally, use the includesTables or ignoreTables class parameters to limit which tables can/cannot be accessed.
Link
See https://js.langchain.com/docs/security for more information.
Example