Giter VIP home page Giter VIP logo

Comments (7)

jeremydaly avatar jeremydaly commented on September 26, 2024 1

Not yet, @clarkd. But you can just run npm install jeremydaly/dynamodb-toolbox#v0.2 to install v0.2 as a dependency.

from dynamodb-toolbox.

jeremydaly avatar jeremydaly commented on September 26, 2024 1

Queries are now supported on the v0.2 branch.

from dynamodb-toolbox.

jeremydaly avatar jeremydaly commented on September 26, 2024

@cameroncf, this is great work! There is a lot to unpack here, but my overall goals for this library include mapping multiple entities to a single table design, and enabling access patterns through the use of config-based mappings (all with caveat that I don't want this to be an ORM). However, using GSIs and encapsulating/automating known patterns for both read and write scenarios, absolutely have to exist.

I really like this idea of interpolating (if you'd call it that) queries, by looking at the model to assume access patterns. I was thinking more along the lines of defining/naming access patterns manually, e.g. Employee.getByEmail('[email protected]'). The thought was that you could build out these access patterns and provide them to developers through your data abstraction layer. There would need to be (I think) some basic things out of the box, though. And your idea could definitely be one of those things.

I'm envisioning the "write" process having more tools for index manipulation as well, because there needs to be an easier way to correctly assemble GSI pks and sks that's based on the input.

Thanks again for this! I'll definitely be incorporating these ideas into the next version.

Jeremy

from dynamodb-toolbox.

cameroncf avatar cameroncf commented on September 26, 2024

@jeremydaly - Just discovered your v0.2 branch, which looks to be a start at some additional ideas. I'm still digesting but really like this tool so far. Thanks for all the hard work on it!

from dynamodb-toolbox.

jeremydaly avatar jeremydaly commented on September 26, 2024

FYI, queries have been implemented in v0.2 as a high level abstraction. This allows for fast and easy query creation, which should be a building block for adding something more advanced like your above proposal. Lots of work left to do, but getting closer.

from dynamodb-toolbox.

clarkd avatar clarkd commented on September 26, 2024

Is 0.2 available on NPM or anywhere? I realise it's not quite there yet but would good to experiment with...

from dynamodb-toolbox.

clarkd avatar clarkd commented on September 26, 2024

Thanks - will take a look!

from dynamodb-toolbox.

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.