The ZCQL Console

The ZCQL Console is an intuitive tool that allows you to execute your required ZCQL queries, perform data manipulation operations on data stored in the Data Store, and save your required ZCQL queries directly in the Catalyst console.

Feature Highlights

catalyst_zcql_console_first_view

You can use the ZCQL Console provides you with the following offerings:

  • When you type in a query, you are provided with a relevant and meaningful code completion suggestion that allows you to form your queries easily and quickly.
  • Execute any query in the console, and you can directly view the complete output.
  • Copy the query using the copy button and apply it to your code with ease.
  • Save any of your required ZCQL queries and reuse it when required.
  • Using the ZCQL Explorer, you can easily search for and reuse the required saved query, view column information of all the tables created in the project, and also reuse previously executed queries from the History section.
Note:
  • By default, only 50 ZCQL queries can be saved in a single Catalyst project. If you have a higher requirement, you can contact the Catalyst Support team to increase this threshold.

  • Only the latest 100 ZCQL queries will be logged in the History section of the ZCQL Explorer. However, there is no time limit on how long the query will be available in the History.

Access the ZCQL Console

To access the ZCQL Console:

  1. Navigate to the Data Store component present under the STORAGE section of the CloudScale service. catalyst_zcql_console_datastore_page
Note: You need to create a table in the Data Store to be access the ZCQL Console.
  1. Click the ZCQL Console tab. catalyst_zcql_console_view_tab_highlight

You can type your query in this console and perform the required operations.

The ZCQL Explorer

The ZCQL Explorer is an expandable and collapsible feature of the ZCQL console. It contains the following sections:

  • Schema: Schema contains information about the table that includes the list of columns present in the table, if the value for the columns is mandatory, and the datatype of the data that will be stored in these columns. catalyst_zcql_console_zcql_explorer_schema

  • Saved Queries: This section will contain a list of all the queries you have saved using the Save Query button. You can search for your required query using its name and reuse it. catalyst_zcql_console_console_explorer_saved_queries

Note: By default, only 50 ZCQL queries can be saved in a single Catalyst project. If you have a higher requirement, you can contact the Catalyst Support team to increase this threshold.
  • History: The History section will contain the complete list of the latest 100 queries that have been executed in the console. catalyst_zcql_console_zcql_explorer_history_section
    If you wish to save a query from the History section, click the save-icon next to the required query and follow the steps listed in this section.
Note: Only the latest 100 ZCQL queries will be present in the History section. However, there is no time limit on how long the query can be stored in History.

Execute a ZCQL Query

To execute a ZCQL query in the ZCQL Console:

  1. Enter your ZCQL query in the console. catalyst_zcql_console_enterquery

  2. Click the Execute Query button. catalyst_zcql_query_query_executed

You will be able to view the output directly in the console.

The query will be executed and logged in the History section present in the ZCQL Explorer.

By default, you will be viewing the output in Table View. You also have the option to view the output as a JSON by clicking the View drop-down, and selecting the JSON View option.

catalyst_zcql_console_json_output_view

You also have the option to copy this JSON and use it as required.

Save a ZCQL Query

In the ZCQL Console, you can execute your required queries and save them. Saving your queries allows you to retrieve them easily and use them whenever they are required instead of manually inputting them for each session.

Note: By default, only 50 ZCQL queries can be saved in a single Catalyst project. If you have a higher requirement, you can contact the Catalyst Support team to increase this threshold.

To save a ZCQL query:

  1. Enter your required query, and click the Save Query button. catalyst_zcql_console_enter_query_save_hihlit

  2. In the pop-up, go through the Query Preview section and provide a Query Name to refer your query by and click Save. catalyst_zcql_console_save_query_pop

Your query will be saved.

You can view and manage your queries from the ZCQL Explorer section, under the Saved Queries tab.

catalyst_zcql_console_query_saved_show

You can click the Console button to print the query into your console.

catalyst_zcql_console_console_button_click_hihlit

You can also further edit this query and execute it as needed or save it under a different query name by repeating the steps mentioned above.

Delete a Saved Query

To delete a saved query:

  1. Click the delete-icon present next to the required query in the Saved Queries section of the ZCQL Explorer. catalyst_zcql_console_query_del_icon

  2. Click Yes, Proceed on the confirmation pop-up to delete the required query. catalyst_zcql_console_delete_prompt

The query will be deleted.

Using ZCQL V2 in Function Code

To use ZCQL V2 code in your function, you will need to set an environment variable for it in the following manner:

  1. Navigate to Serverless > Functions. catalyst_zcql_v2_func_list
  2. Click the function that contains your ZCQL V2 code.
  3. Click the Configuration tab, then click Create Variable under Environmental Variables. zcql_v2_create_env_variable
  4. Enter the following values in the respective fields:
    Key: ZOHO_CATALYST_ZCQL_PARSER
    Development Value: V2 catalyst_zcql_parser_env_setting
  5. Click Save. catalyst_zcql_env_variable_set

You will now be able to use ZCQL V2 in your function code.

Note:
  • You do not have to reference the environment variable anywhere in your code. Once you have configured it in the console, you can use ZCQL V2 in your function code.

  • From December 01st, 2024, all your current projects in all your Orgs present in the Development Environment will be automatically mapped to ZCQL V2 Parser.

  • From April 01st, 2025, all the projects present in all Orgs that have already been mapped to ZCQL V2 Parser in Development Environment will be automatically mapped to ZCQL V2 Parser in the Production Environment, if and when production is enabled for the project.

Last Updated 2024-09-03 16:31:06 +0530 +0530