-
Notifications
You must be signed in to change notification settings - Fork 63
Add sql binding java annotations #379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| <developers> | ||
| <developer> | ||
| <id>LucyZhang</id> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably be something generic like "Microsoft"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other extensions all seem to be using the developer's names as id:
https://github.com/Azure/azure-functions-rabbitmq-extension/blob/c319042b4297a6beb0c526652c124a1ca4305496/java-library/pom.xml#L40
https://github.com/Azure/azure-functions-signalrservice-extension/blob/bb21bb00d91cc68b3ec9e3d02938be8a1d4d5c36/binding-library/java/pom.xml#L57
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you reach out to see if there's a reason they're doing that? That's not normally how we ship stuff so I don't think we should be doing that unless there's a specific reason it needs to be someone's name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually looking at the XSD it seems the developers field is optional so I'd just remove that - unless again there's a specific requirement for having at least one developer listed.
java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLOutput.java
Show resolved
Hide resolved
java-library/src/main/java/com/microsoft/azure/functions/sql/annotation/SQLOutput.java
Show resolved
Hide resolved
Charles-Gagnon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably remove the developers fields but otherwise looks fine
| /** | ||
| * Text or Stored Procedure. | ||
| */ | ||
| String commandType() default ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're defaulting to Text on CSharp, shouldn't we do the same here instead of leaving it empty?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to use Text as default but when I ran a Java function without the commandType specified, it threw an error:
Microsoft.Azure.WebJobs.Extensions.Sql: The type of the SQL attribute for an input binding must be either CommandType.Text for a direct SQL query, or CommandType.StoredProcedure for a stored procedure.
I'll leave it empty for now but can certainly revisit this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please file an issue so we can track that
Will be creating a separate PR for samples and tests.