Databases
To use databases in your business or User Dialog processes, start with defining Database Connections for each database you want to use. After you have configured the databases (data sources) you can use them in your process steps. The process steps reference only the Database Connection ids.
Database Editor
The Database Editor lets you configure the databases you use in your project.
Database Editor
The left side of the Database Editor contains all the Database Connections. A click on one of them will show the properties of the selected Database Connection on the right side of the editor.
Dynamic Properties
You may need to adjust property values for multiple runtime environments. E.g., use different database hosts for testing and production, consequently with other credentials and connection URIs.
If you anticipate this need, then you can simplify these configuration
adjustments for operations by using Dynamic Configuration expressions in both
properties and other configuration values. E.g., the property
databaseName=${ivy.var.cloudDb} is evaluated at runtime and has the value of
the variable called cloudDb. Thus, your database name is now configurable
using variable cloudDb. Operations need to set this variable correctly; they
do not need to dive into the configuration of this external database.
SQL Executor
The SQL Executor lets you inspect and query your database content directly within the Axon Ivy Designer without switching to an external database tool. Use it to browse table contents or develop and debug queries before using them in process steps.
Open the SQL Executor by clicking in the Database
Executor toolbar.
SQL Executor
Query Input
Database Configuration Shows the name of the currently active database connection. Determined by the selection in the Database Executor and cannot be changed within the SQL Query Runner.
Tables This dropdown lists all tables of the database. Selecting a table automatically generates and executes a
SELECT * FROM <table>query. A quick way to inspect table contents without writing SQL manually.SQL Input Area Write any custom SQL query here.
Last Query Output Displays the result of the last executed query. Also after clossing and reopening the SQL Executor, the last query output is still available.
Execute Runs the query from the SQL input area and displays the result below.
Query Result
SELECTqueries return the result as a table with column headers and row data.INSERT,UPDATE,DELETE, andCREATEstatements return a confirmation message.
Warning
Do not use a production database with the SQL Executor. Use a dedicated test database only. All SQL statements can be executed, including statements that modify or delete data and schema definitions.