Swiftybase
Function StackCustom function

Group

Organize function statements into structured groups for better readability and execution flow.

Groups can also be used to easily execute database queries within a transaction. If an error is thrown inside the group, all changes will automatically be rolled back.

Supported Operations:

There are four types of operations that can be applied to a group:

  • MySQL Transaction – Executes MySQL queries within a transaction and commits changes if successful.
  • PostgreSQL Transaction – Similar to MySQL, but for PostgreSQL.
  • Redis Pipeline – Executes multiple Redis commands in a pipeline for efficiency.
  • Redis Transaction – Executes multiple Redis commands in a transaction.

Configuration:

Depending on the applied transaction type, the group must specify the required database dependency by name.

Group

On this page