[data.transaction.commit]

data.transaction.commit is a slot in the data namespace, in Hyperlambda, the language of Magic Cloud. Commits the current database transaction using the configured provider.

  • Scope: requires data.transaction - Requires an active database transaction created by [data.transaction.create]

Arguments

Required arguments come first, then the optional ones in the order they are declared.

Argument Type Required Description
[database-type] string no Database adapter to use instead of the configured default.

JSON declaration

This is the complete declaration of data.transaction.commit, as the running system describes it. It is also published as slot.json.

JSON declaration
{
  "name": "data.transaction.commit",
  "description": "Commits the current database transaction using the configured provider",
  "signature": {
    "children": {
      "database-type": {
        "type": "string",
        "kind": "database-type",
        "description": "Database adapter to use instead of the configured default",
        "required": false,
        "mode": "ValueOrExpression",
        "cardinality": "ZeroOrOne"
      }
    },
    "scope": {
      "requires": "data.transaction",
      "description": "Requires an active database transaction created by [data.transaction.create]"
    }
  }
}

← data.select all data.* slots data.transaction.create →