You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1492,7 +1500,7 @@ The following table explains the binding configuration properties that you set i
1492
1500
1493
1501
## Usage
1494
1502
1495
-
The attribute's constructor takes the MySQL command text, the command type, parameters, and the connection string setting name. The command can be a MYSQL query with the command type `System.Data.CommandType.Text` or stored procedure name with the command type `System.Data.CommandType.StoredProcedure`. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/refman/8.4/en/connecting-using-uri-or-key-value-pairs.html#connecting-using-uri) to the Azure Database for MySQL.
1503
+
The attribute's constructor takes the MySQL command text, the command type, parameters, and the connection string setting name. The command can be a MYSQL query with the command type `System.Data.CommandType.Text` or stored procedure name with the command type `System.Data.CommandType.StoredProcedure`. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/connector-net/en/connector-net-connections-string.html) to the Azure Database for MySQL.
1496
1504
1497
1505
1498
1506
If an exception occurs when a MySQL input binding is executed then the function code won't execute. This may result in an error code being returned, such as an HTTP trigger returning a 500 error code.
> While input and output bindings will be supported on all plans, the MySQL Trigger binding will be available only on [dedicated and premium plans](functions-scale.md) during the public preview. Support for Consumption plans in the MySQL Trigger binding will be introduced at general availability.
22
22
>
23
23
24
-
The Azure Database for MySQL trigger creates a new column to monitor when a row is created, or deleted. The Trigger bindings monitor the user table for changes (inserts, updates) and invokes the function with updated row data.
24
+
The Azure Database for MySQL Trigger bindings monitor the user table for changes (inserts, updates) and invokes the function with updated row data.
25
25
26
26
Azure MySQL Trigger bindings use "az_func_updated_at" and column's data, to monitor the user table for changes. As such, it is necessary to alter the table structure to allow change tracking on the MySQL table before using the trigger support. The change tracking can be enabled on a table through following query. For example, enable on ‘Products’ table:
27
27
@@ -53,7 +53,7 @@ Changes are processed in the order that they were made, with the oldest changes
53
53
2. Changes are "batched" together for a row. If multiple changes are made to a row between each iteration of the loop, then only the latest change entry exists for that row will be considered.
54
54
55
55
> [!NOTE]
56
-
>Trigger Binding with table name containing alphanuemric & _(underscore) are supported. Apart from that Trigger Binding doesn't support any other special characters like (-, * $).
56
+
>Trigger Binding with table name containing alphanuemric & _(underscore) are supported. Apart from that Trigger Binding doesn't support any other special characters like (-, *, $).
57
57
>
58
58
59
59
@@ -71,7 +71,7 @@ More samples for the Azure Database for MySQL trigger are available in the [GitH
71
71
The example refers to a `Product` class and a corresponding database table:
> Please note that Azure Functions version 1.22.0b4 must be used for Python .
526
+
>
527
+
528
+
522
529
The MySQL trigger binds to a variable `Product`, a list of objects each with two properties:
523
530
-**item:** the item that was changed. The structure of the item will follow the table schema.
524
531
-**operation:** The possible values is `Update` for both insert and update.
@@ -597,7 +604,7 @@ def main(changes):
597
604
| Attribute property |Description|
598
605
|---------|---------|
599
606
|**TableName**| Required. The name of the table monitored by the trigger. |
600
-
|**ConnectionStringSetting**| Required. The name of an app setting that contains the connection string for the database containing the table monitored for changes. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/refman/8.4/en/connecting-using-uri-or-key-value-pairs.html) to the Azure Database for MySQL.|
607
+
|**ConnectionStringSetting**| Required. The name of an app setting that contains the connection string for the database containing the table monitored for changes. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/connector-net/en/connector-net-connections-string.html) to the Azure Database for MySQL.|
601
608
| **LeasesTableName** | Optional. Name of the table used to store leases. If not specified, the leases table name will be Leases_{FunctionId}_{TableId}.
602
609
603
610
@@ -614,7 +621,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
614
621
|---------|---------|
615
622
|**name**| Required. The name of the parameter that the trigger binds to. |
616
623
|**tableName**| Required. The name of the table monitored by the trigger. |
617
-
|**connectionStringSetting**| Required. The name of an app setting that contains the connection string for the database containing the table monitored for changes. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/refman/8.4/en/connecting-using-uri-or-key-value-pairs.html) to the Azure Database for MySQL.|
624
+
|**connectionStringSetting**| Required. The name of an app setting that contains the connection string for the database containing the table monitored for changes. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/connector-net/en/connector-net-connections-string.html) to the Azure Database for MySQL.|
618
625
| **LeasesTableName** | Optional. Name of the table used to store leases. If not specified, the leases table name will be Leases_{FunctionId}_{TableId}.
619
626
620
627
::: zone-end
@@ -631,7 +638,7 @@ The following table explains the binding configuration properties that you set i
631
638
|**type**| Required. Must be set to `MysqlTrigger`. |
632
639
|**direction**| Required. Must be set to `in`. |
633
640
|**tableName**| Required. The name of the table monitored by the trigger. |
634
-
|**connectionStringSetting**| Required. The name of an app setting that contains the connection string for the database containing the table monitored for changes. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/refman/8.4/en/connecting-using-uri-or-key-value-pairs.html) to the Azure Database for MySQL.|
641
+
|**connectionStringSetting**| Required. The name of an app setting that contains the connection string for the database containing the table monitored for changes. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/connector-net/en/connector-net-connections-string.html) to the Azure Database for MySQL.|
635
642
| **LeasesTableName** | Optional. Name of the table used to store leases. If not specified, the leases table name will be Leases_{FunctionId}_{TableId}.
0 commit comments