Follow these steps to create a data source connection with artificial intelligence in the Datasources module:
- Log in to the Kuika platform and open the project you will work with from the Apps screen.
- The screen will display Managed DB, a default local database created by Kuika.
- Thanks to Managed DB, you can develop and publish your application without the need for an additional database server.
- The relationships between database tables are also shown on this screen.
- In the left menu, you can view the data sources, actions and tables in your application and add a new datasource, action or table.
- The Datasource panel has Actions and Tables sub-tabs by default.
Creating a SQL Action
- Click the + icon next to the Actions heading in the left panel.
- Select New SQL Action from the drop-down menu.
- Write your SQL query via SQL Editor and click the CREATE button on the top right.
- To create a SQL query with artificial intelligence, you can get suggestions by activating the Generate with AI option.
- The generated action can be viewed in the left panel, then edited, renamed or deleted.
- For editing: Hover over the action and use Edit.
- To update: Edit the SQL query and click the Update button.
- To delete: Use the Delete option in the drop-down menu.
Creating a Select Action
- Click the + icon next to the Actions heading in the left panel.
- Select New Select Action from the drop-down menu.
- In the window that opens, give the action a name.
- Click the + icon to select the data source.
- Define Fields, Filter and Sort Order fields according to your needs.
Table Creation
With Kuika you can quickly add a new table to the data source.
- Click the + icon next to the Tables heading in the left panel.
- Select New Table from the drop-down menu.
- In the Create a New Table screen, name the table and click Next.
- Enter the column information:
- Column Name
- Type: Data Type
- Required: Whether it is a mandatory field
- Unique: Whether it is unique
- Click the ADD button.
- Click the CREATE button to complete the table insertion process.
You can activate the Kuika AI button to use artificial intelligence suggestions.
Editing and Deleting a Table
- To edit the table: Select the table in the left panel and click the ellipsis. You can update the existing table using the Edit option.
- To delete a table: Click Delete.