Repository navigation
Database Operations
dotIO™ edited this page May 15, 2026
·
4 revisions
The Database Operations section provides functions for loading existing events from the database for the selected entries and for generating SQL update queries based on the current project state.
-
Import Events to selected Entry from ...
- These buttons require correctly configured database connections in the Settings section.
- Imports existing SmartAI events and exiting conditions from a database into the currently selected entry.
- See the detailed description below.
-
Generate SQL Code
- Opens a window that allows the generated SQL update query to be reviewed and copied to the clipboard.
- The generated query replaces all existing SmartAI scripts and linked conditions for the selected entries in the database with the events currently defined in the application.
- The query also ensures that the required SmartAI-related fields are set correctly in the corresponding
_templatetables.

This function allows importing events from the smart_script table and linked conditions from the conditions table into the currently selected entry.
- Events can be imported from any entry. The entry ID, GUID, and type do not need to match the selected entry.
- All fields except "Name or Alias" must be filled as described in the Entry Selection section.
Use the "Use" button to import the events into the selected entry.
You will be prompted to choose whether the imported events should replace the existing events or be added on top of them:
- If you choose to replace the events, all existing events for the selected entry in the query builder will be removed and replaced with the imported events.
- If you choose to add the events, the imported events will be appended to the existing ones. Event IDs will be adjusted automatically to avoid conflicts.

This tool is in an alpha state and may contain bugs. Feel free to submit bug reports and feature requests in the issues section.