Skip to content

feat: Add BatchPutItems method to WriteAPI - #31

Merged
lakshmaji-till merged 7 commits into
oolio-group:mainfrom
Santosh1608:chore/batch-write-items-expose
Dec 4, 2025
Merged

lakshmaji-till merged 7 commits into
oolio-group:mainfrom
Santosh1608:chore/batch-write-items-expose

Conversation

@Santosh1608

@Santosh1608 Santosh1608 commented Dec 3, 2025 •

Copy link
Copy Markdown
Contributor

Add BatchPutItems method to WriteAPI
So that package users can make use of BatchPutItems exposed by dynago helper pkg

Tested locally and it works correctly with these changes

Copilot AI review requested due to automatic review settings December 3, 2025 06:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a BatchPutItems method to the WriteAPI interface, providing a higher-level abstraction for batch writing items to DynamoDB. The method simplifies batch operations by automatically marshaling items and adding partition/sort keys, similar to the existing TransactPutItems API.

Key Changes:

  • Added BatchPutItemsInput struct to encapsulate batch put operation parameters
  • Implemented BatchPutItems method that marshals items and delegates to the existing BatchWriteItems method
  • Extended WriteAPI interface to include the new batch put capability

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
interface.go Added BatchPutItems method signature to WriteAPI interface
batch_write_items.go Implemented BatchPutItemsInput struct and BatchPutItems method that provides a convenient wrapper around BatchWriteItems

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread batch_write_items.go
Comment thread batch_write_items.go Outdated
Comment thread batch_write_items.go
Comment thread batch_write_items.go Outdated
Comment thread batch_write_items.go Outdated
Comment thread batch_write_items.go Outdated
Comment thread batch_write_items.go Outdated
Comment thread batch_write_items.go Outdated
@Santosh1608
Santosh1608 requested a review from shidil December 4, 2025 05:17
@shidil
shidil enabled auto-merge (squash) December 4, 2025 06:13
@shidil

shidil commented Dec 4, 2025

Copy link
Copy Markdown
Member

@Santosh1608 Please setup commit signature signing on your machine.
https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

auto-merge was automatically disabled December 4, 2025 07:01

Head branch was pushed to by a user without write access

@Santosh1608
Santosh1608 force-pushed the chore/batch-write-items-expose branch from 656724b to af75030 Compare December 4, 2025 07:01
@lakshmaji-till
lakshmaji-till merged commit c014ee4 into oolio-group:main Dec 4, 2025
1 check passed
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.

5 participants