Implementation of TablesApiClient that goes through the REST API

Hierarchy

Constructors

Properties

sqlClient: default

SQL API client to send all SQL query requests.

Methods

  • Creates a table in an integration from a given SELECT statement. If the table already exists, it is deleted first and then recreated.

    Returns

    • Newly created/replaced table.

    Throws

    • Something went wrong creating or replacing the table.

    Parameters

    • name: string

      Name of table to be created/replaced.

    • integration: string

      Name of integration the table will be a part of.

    • select: string

      SELECT statement to use for populating the new/replaced table with data.

    Returns Promise<default>

  • Creates a table in an integration from a given SELECT statement.

    Returns

    • Newly created table.

    Throws

    • Something went wrong creating the table.

    Parameters

    • name: string

      Name of table to be created.

    • integration: string

      Name of integration the table will be a part of.

    • select: string

      SELECT statement to use for populating the new table with data.

    Returns Promise<default>

  • Deletes a table from its integration.

    Throws

    • Something went wrong deleting the table.

    Parameters

    • name: string

      Name of the table to be deleted.

    • integration: string

      Name of the integration the table to be deleted is a part of.

    Returns Promise<void>

Generated using TypeDoc