diff --git a/java-library/pom.xml b/java-library/pom.xml index b1dd8d933..051b61f63 100644 --- a/java-library/pom.xml +++ b/java-library/pom.xml @@ -4,7 +4,7 @@ com.microsoft.azure.functions azure-functions-java-library-sql - 2.0.0-preview + 2.1.0-preview jar diff --git a/java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLInput.java b/java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLInput.java index f75f3901c..0973ed8b5 100644 --- a/java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLInput.java +++ b/java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLInput.java @@ -30,7 +30,7 @@ /** * Text or Stored Procedure. */ - CommandType commandType(); + CommandType commandType() default CommandType.Text; /** * Parameters to the query or stored procedure. This string must follow the format diff --git a/java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLTrigger.java b/java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLTrigger.java index f52bf97fa..e0b12fce5 100644 --- a/java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLTrigger.java +++ b/java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLTrigger.java @@ -31,4 +31,11 @@ * Setting name for SQL connection string. */ String connectionStringSetting(); + + /** + * Optional. Name of the table used to store leases. If not specified, the leases table name will be + * Leases_{FunctionId}_{TableId}. More information on how this is generated can be found here: + * https://github.com/Azure/azure-functions-sql-extension/blob/release/trigger/docs/TriggerBinding.md#az_funcleases_). + */ + String leasesTableName() default ""; } \ No newline at end of file