Skip to content

Commit b315e12

Browse files
committed
add name to java binding interface
1 parent 34ce571 commit b315e12

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

java-library/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.microsoft.azure.functions</groupId>
66
<artifactId>azure-functions-java-library-sql</artifactId>
7-
<version>0.1.0</version> <!-- Update the dependency version in samples-java/pom.xml too if this version is updated. -->
7+
<version>0.1.1</version> <!-- Update the dependency version in samples-java/pom.xml too if this version is updated. -->
88
<packaging>jar</packaging>
99

1010
<parent>

java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLInput.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
@Target(ElementType.PARAMETER)
1818
@CustomBinding(direction = "in", name = "sql", type = "sql")
1919
public @interface SQLInput {
20+
/**
21+
* The variable name used in function.json.
22+
*/
23+
String name() default "sql";
24+
2025
/**
2126
* Query string or name of stored procedure to be run.
2227
*/

java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLOutput.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
@Target({ ElementType.PARAMETER, ElementType.METHOD })
1919
@CustomBinding(direction = "out", name = "sql", type = "sql")
2020
public @interface SQLOutput {
21+
/**
22+
* The variable name used in function.json.
23+
*/
24+
String name() default "sql";
25+
2126
/**
2227
* Name of the table to upsert data to.
2328
*/

0 commit comments

Comments
 (0)