Title: Easily update the tablename · Issue #337 · shiftcode/dynamo-easy · GitHub
Open Graph Title: Easily update the tablename · Issue #337 · shiftcode/dynamo-easy
X Title: Easily update the tablename · Issue #337 · shiftcode/dynamo-easy
Description: Hi it's me! I'm checking out your library and it looks very promising. I almost got something working but: Is your feature request related to a problem? Please describe. I needed to set the table name on run time, but I find cumbersome t...
Open Graph Description: Hi it's me! I'm checking out your library and it looks very promising. I almost got something working but: Is your feature request related to a problem? Please describe. I needed to set the table n...
X Description: Hi it's me! I'm checking out your library and it looks very promising. I almost got something working but: Is your feature request related to a problem? Please describe. I needed to set the...
Opengraph URL: https://github.com/shiftcode/dynamo-easy/issues/337
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Easily update the tablename","articleBody":"Hi it's me! \r\nI'm checking out your library and it looks very promising. I almost got something working but:\r\n\r\n**Is your feature request related to a problem? Please describe.**\r\nI needed to set the table name on run time, but I find cumbersome to call updateDynamoEasyConfig everywhere.\r\nI do not have a \"central\" entry-point, so this forces my code to create that central entry point. (im doing lambdas)\r\n\r\n**Describe the solution you'd like**\r\nSince stores instances are per model. It'd be nice if we could override the values of the tablename here:\r\nhttps://github.com/shiftcode/dynamo-easy/blob/master/src/dynamo/dynamo-store.ts#L36\r\nSo i could do something like :\r\n```javascript\r\nnew DynamoStore(Profile, {\r\n tablename: 'users-stage-98754'\r\n})\r\n```\r\n\r\n**Describe alternatives you've considered**\r\nI'm trying to set this up with updateDynamoEasyConfig but it makes my code ugly, and I cannot have it dangling since my code is serialized into a bundle, and because updateDynamoEasyConfig is not being referenced by the executing code it wont be deployed. I have similar issue in which I have to call `require('reflect-metadata')` because the import is not being taken into account.\r\nSo basically I'll have to copy pasta that portion of the code on every handler, or \"import\" a common \r\n\r\nThanks\r\n","author":{"url":"https://github.com/andreujuanc","@type":"Person","name":"andreujuanc"},"datePublished":"2020-12-08T21:20:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/337/dynamo-easy/issues/337"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:41b48e6a-0f3f-fa5a-34bb-da107b3e8cee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD98:D2022:7CBF09:A32D3E:698EB2DB |
| html-safe-nonce | bda6a514e101b4cf20a3dbf881a4ff78f16da242ed093fed825316f56dc49a71 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDk4OkQyMDIyOjdDQkYwOTpBMzJEM0U6Njk4RUIyREIiLCJ2aXNpdG9yX2lkIjoiMjAyNzE5OTc1NjUxMDYyNDkxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 150fd728f29590a140b2c67a35a65eb8b3453c13145db8794e6075e01f399ed6 |
| hovercard-subject-tag | issue:759790191 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/shiftcode/dynamo-easy/337/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d48c43b678ebaabd1d7ec3de30e8c627b2777d8744ba4f046175570fda85a90a/shiftcode/dynamo-easy/issues/337 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d48c43b678ebaabd1d7ec3de30e8c627b2777d8744ba4f046175570fda85a90a/shiftcode/dynamo-easy/issues/337 |
| og:image:alt | Hi it's me! I'm checking out your library and it looks very promising. I almost got something working but: Is your feature request related to a problem? Please describe. I needed to set the table n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreujuanc |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/shiftcode/dynamo-easy git https://github.com/shiftcode/dynamo-easy.git |
| octolytics-dimension-user_id | 8321541 |
| octolytics-dimension-user_login | shiftcode |
| octolytics-dimension-repository_id | 99894900 |
| octolytics-dimension-repository_nwo | shiftcode/dynamo-easy |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 99894900 |
| octolytics-dimension-repository_network_root_nwo | shiftcode/dynamo-easy |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width