langchain.js
    Preparing search index...

    A tool for executing SQL queries. It takes a SQL database as a parameter and assigns it to the db property. The _call method is used to run the SQL query and return the result. If the query is incorrect, an error message is returned.

    Hierarchy (View Summary)

    Implements

    • SqlTool
    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    description: string = ...
    name: string = "query-sql"

    Methods

    • Returns string