SQL workbooks

SQL workbook is used to save SQL content and its version, and does not execute SQL. Create or select a workbook before creating, viewing, modifying, or finalizing versions of it.

  • workbook_id identifies a SQL workbook. This value is returned when creating a workbook or viewing a list of workbooks.

  • version_id identifies a SQL version in this workbook. This value is returned when creating a draft or viewing a version list.

Select task

Task

interface

Description

Query SQL workbook list

Query SQL workbook list

Lists the SQL workbooks accessible by the current workspace.

Query SQL workbook version content

Query SQL workbook version content

View the SQL content saved in the specified version of a SQL workbook, but the SQL will not be executed.

Add new SQL workbook

Create SQL workbook

Create a workbook that holds the SQL content and its version.

Rename SQL workbook

Update SQL workbook name

Updating the SQL workbook name does not modify the content or version of SQL saved in it.

Remove SQL workbook

Delete SQL workbook

Delete a SQL workbook and all its versions.

Query SQL workbook version list

Query SQL workbook version list

List all versions of a SQL workbook.

Write a new SQL draft

Create SQL draft version

Create an editable draft version of a SQL workbook and save the initial SQL content.

Modify SQL that has not yet been finalized

Updated SQL draft version

Modify the SQL content that has not yet been finalized and do not execute the SQL.

Make SQL draft a read-only version

Finalized SQL version

Save and finalize a draft version.

Last updated on