Code Monkey home page Code Monkey logo

Comments (4)

awood45 avatar awood45 commented on June 26, 2024 2

Okay, after some discussions, I think the plan will be to expose select parameters individually (override parameters causes nasty collision issues with existing helper functionality).

For example, you could append to existing conditions, and the condition expression would look kind of like:

"#{aws_record_condition_expression} AND (#{user_provided_condition_expression})"

..and then we would merge the expression attribute name and value hashes.

from aws-sdk-ruby-record.

awood45 avatar awood45 commented on June 26, 2024

#save doesn't yet expose this functionality, but i think it should. The tricky part is how we want to expose the condition expression. I'm going to chew on this a bit - one possible option that solves this generically is maybe an :override_parameters option that is passed in to save, that lets you override any of the underlying client parameters. In this manner, you could provide conditional expressions, or for that matter, alter any other underlying client option if you know what you're doing. It wouldn't preclude other params that do this in a higher level way either.

from aws-sdk-ruby-record.

jmclachlan avatar jmclachlan commented on June 26, 2024

Any update on this?

from aws-sdk-ruby-record.

awood45 avatar awood45 commented on June 26, 2024

We're going to work this in with smart query/scan support that I'm working on.

from aws-sdk-ruby-record.

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.