[mysql.transaction.create]

mysql.transaction.create is a slot in the mysql namespace, in Hyperlambda, the language of Magic Cloud. Creates a MySQL transaction.

  • Scope: requires mysql.connection; provides mysql.transaction - Requires an open MySQL connection created by [mysql.connect]

Arguments

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

Argument Type Required Description
any node name lambda no Executable child slot evaluated while the database connection is open. Can be repeated.

Guide

How to use mysql.transaction.create

JSON declaration

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

JSON declaration
{
  "name": "mysql.transaction.create",
  "description": "Creates a MySQL transaction",
  "signature": {
    "children": {
      "*": {
        "type": "lambda",
        "description": "Executable child slot evaluated while the database connection is open",
        "required": false,
        "mode": "ExecutableLambda",
        "cardinality": "ZeroOrMore",
        "role": "ExecutableBody",
        "evaluation": "EvalSelf",
        "projection": "Self"
      }
    },
    "scope": {
      "provides": "mysql.transaction",
      "requires": "mysql.connection",
      "description": "Requires an open MySQL connection created by [mysql.connect]"
    }
  }
}

← mysql.transaction.commit all mysql.* slots mysql.transaction.rollback →