[mysql.connect]

mysql.connect is a slot in the mysql namespace, in Hyperlambda, the language of Magic Cloud. Opens a MySQL connection.

  • Value (database-name,connection-string), optional: Optional DATABASE_NAME or [CONNECTION_STRING DATABASE_NAME] override
  • Scope: provides mysql.connection - Creates an open MySQL connection scope for mysql.* slots

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.

JSON declaration

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

JSON declaration
{
  "name": "mysql.connect",
  "description": "Opens a MySQL connection",
  "signature": {
    "input": {
      "kind": "database-name,connection-string",
      "description": "Optional DATABASE_NAME or [CONNECTION_STRING|DATABASE_NAME] override",
      "required": false,
      "mode": "ValueOrExpression"
    },
    "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.connection",
      "description": "Creates an open MySQL connection scope for mysql.* slots"
    }
  }
}

all mysql.* slots mysql.create →