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_ididentifies a SQL workbook. This value is returned when creating a workbook or viewing a list of workbooks.version_ididentifies 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 |
Lists the SQL workbooks accessible by the current workspace. |
|
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 a workbook that holds the SQL content and its version. |
|
Rename SQL workbook |
Updating the SQL workbook name does not modify the content or version of SQL saved in it. |
|
Remove SQL workbook |
Delete a SQL workbook and all its versions. |
|
Query SQL workbook version list |
List all versions of a SQL workbook. |
|
Write a new SQL draft |
Create an editable draft version of a SQL workbook and save the initial SQL content. |
|
Modify SQL that has not yet been finalized |
Modify the SQL content that has not yet been finalized and do not execute the SQL. |
|
Make SQL draft a read-only version |
Save and finalize a draft version. |