Skip to main content

Close database

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Close the connected database. This command terminates the active database connection that was previously established.


Parameter Values

Input parameters

Parameter

Description

Required

Options / Notes

Database

Select a database connection

Yes

You must specify which database connection to close

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables for the database parameter by clicking the variable icon or typing {x} where x is your variable name. This allows you to dynamically specify which database connection to close based on variables defined earlier in your workflow.


Notes

  • Before using this command, ensure that a database connection has been previously established.

  • It is good practice to close database connections when they are no longer needed to free up resources.

  • If you attempt to close a database connection that does not exist or is already closed, an error may occur.

Did this answer your question?