Skip to content
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

Add support for table input & output #146

Merged
merged 1 commit into from
Sep 20, 2023
Merged

Add support for table input & output #146

merged 1 commit into from
Sep 20, 2023

Conversation

ejizba
Copy link
Contributor

@ejizba ejizba commented Sep 18, 2023

No one asked for this one, but all the languages use it as an example in the http trigger docs here, so that's what inspired me to add it. Plus it was pretty low-hanging fruit.

Technically the table binding supports both "Azure Cosmos DB for Table" and "Azure Table Storage", so that's why it's by itself instead of being grouped with storage or cosmos.

Lastly, table doesn't support triggers at all. Just input and output.

@ejizba ejizba merged commit 8ed8468 into v4.x Sep 20, 2023
9 checks passed
@ejizba ejizba deleted the ej/table branch September 20, 2023 19:00
@LuwkasLima
Copy link

LuwkasLima commented Sep 27, 2023

@ejizba thank you very much for looking at that. Has this been released already? I'm using
"@azure/functions": "^4.0.0-alpha.1" w/ Azure-functions-core-tools@4 for MacOS w/ extension bundle [4.*, 5.0.0]. Can't see that in the library:

image

@ejizba
Copy link
Contributor Author

ejizba commented Sep 27, 2023

@LuwkasLima Yes, this PR has been released. We actually just released the GA version v4.0.0 of @azure/functions, so I highly recommend updating to that version instead of any "alpha" version

@LuwkasLima
Copy link

Thx, I did update to the latest package and it worked as expected.

If I understood well, it doesn't handle upsert or delete at the moment. Do we have a roadmap for that to come?

@ejizba
Copy link
Contributor Author

ejizba commented Sep 27, 2023

The most I know is what the docs say:

This output binding only supports creating new entities in a table. If you need to update an existing entity from your function code, instead use an Azure Tables SDK directly.

Seems like using the SDK directly is the recommended solution, so my guess is this is not on a roadmap.

This would not be specific to Node.js, which is what I focus on and what this repo focuses on. For the table-specific GitHub repo, I believe this is where it is: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/tables/Microsoft.Azure.WebJobs.Extensions.Tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants