Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Expose the table name being migrated #27

Open
HeroesDieYoung opened this issue Dec 22, 2020 · 0 comments
Open

Expose the table name being migrated #27

HeroesDieYoung opened this issue Dec 22, 2020 · 0 comments

Comments

@HeroesDieYoung
Copy link

The table name being operated on is not exposed at runtime through the dyno object. If developers are using TypeScript, the table name is a required part of the update expression. So, to avoid the compilation error, developers must provide their migrations another way to get the table name being worked on - duplicating it with the command line arguments used to invoke dynamodb-migrator.

If the dyno object made the table name string available, we'd be able to avoid this extra step.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant