Built-in code templates
1 min read
On this page
Ververica Cloud provides built-in templates for use case scenarios with functioning code samples and instructions on how to use them. Code templates help you quickly understand the features and related syntax of Ververica Cloud and implement your own business logic. Below, we describe the usage scenarios for code templates and how to use them.
Precautions
Code templates drafts must contain the INSERT INTO statement in order to be deployed.
Supported Code Templates
The following sections categorize and provide use case scenarios for the code templates provided by Ververica Cloud.
Basic Templates
Aggregation and Analysis Templates
Deduplication Template
Top-N Templates
Complex Event Processing (CEP) Template
JOIN Templates
Procedure
The following steps demonstrate how to use a code template in Ververica Cloud. In this example, the Create Table template is used.
- On the Dashboard page, open the console for the workspace you want to manage.
- In the Console navigation pane, click SQL editor and choose the Drafts tab.
- Click New to create a new draft.
- From the SQL Scripts in the New Draft dialog box, choose the Create Table code template and click Next.
- Configure the Name, Location, and Engine Version parameters of the Draft based on your needs.
- In the Preview section, write your SQL code.
- Click Create.
Was this helpful?