Giter Club home page Giter Club logo

Comments (4)

philwills avatar philwills commented on May 27, 2024

A deleteAll would be a good addition.

Mixing the two seems a bit odd to me and I haven't seen any compelling uses in the wild, so I'm not yet convinced it's worth the complexity.

from scanamo.

joprice avatar joprice commented on May 27, 2024

I have at one use case for it so far that corresponds to a user on a mobile device modifying a list of items and sending a batch of modifications and removals. But it's probably a rare use case.

from scanamo.

randallalexander avatar randallalexander commented on May 27, 2024

@philwills we have a working version of deleteAll based off the putAll that we would be willing to contribute back. My main question is what do you think the result should be? Our version tries to go through the result and figure out what was actually deleted and return that. (Since the AWS result does return unprocessed items https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_BatchWriteItem.html) Alternatively we could just return the unprocessed items, the BatchWriteItemResult, or any other variant you can think of. I am open to whatever you think is more inline with the library design. Let me know and I will work on a PR for it.

from scanamo.

philwills avatar philwills commented on May 27, 2024

This is now supported as of 0.8.2

from scanamo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.