Git Product home page Git Product logo

Comments (3)

andrykonchin avatar andrykonchin commented on September 22, 2024

Hello. No, Dynamoid doesn't support table schema management (like mentioned GSI creation).

Wondering what is a use case for such feature.

from dynamoid.

ninhlv-9984 avatar ninhlv-9984 commented on September 22, 2024

@andrykonchin
Thank you for your response and apologies for the confusion in my previous response. You are correct that Dynamoid does not support table schema management and creating GSIs through migrations. Instead, you would need to create the GSI using AWS CLI, AWS SDK, or the DynamoDB console.

Regarding your question about use cases for managing table schema through code, one use case would be to automate the creation and modification of tables and indexes across multiple environments, such as development, staging, and production. By defining the table schema and indexes in code, you can ensure consistency across environments and reduce the risk of human error in creating or modifying tables and indexes.

from dynamoid.

andrykonchin avatar andrykonchin commented on September 22, 2024

I suppose you are talking about something similar to Rails migrations and

  • defining schema in a separate file (like db/schema.rb)
  • dumping/loading schema
  • modifying existing tables with migrations (defined in db/migrate)

Or do you mean some standalone tool not related to Rails approach that can be used even apart from Dynamoid?
Or you mean using schema definition (hash/range keys, GSI and LSI) given in model to migrate table schemas in current environment (staging/test/production)?

from dynamoid.

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.