Class to perform SQL operations through the REST API.

See

API docs

Hierarchy

Constructors

Properties

authenticator: default

Authenticator to use for reauthenticating if needed.

client: Axios

Axios instance to send all requests.

Methods

  • Returns a structured query result from the raw SQL query API response.

    Returns

    • A structured query result in an easier to use format.

    Parameters

    • response: default

      The raw API response data from the /api/sql/query endpoint.

    Returns default

  • Runs the given SQL query on the backend.

    Returns

    • A structured query result from running the raw SQL query.

    Throws

    • Something went wrong sending the API request.

    Parameters

    • query: string

      The raw SQL query to run.

    Returns Promise<default>

Generated using TypeDoc