balmbees / dynamo-types

Typescript AWS DynamoDB ORM
231 stars 18 forks source link

Table decorator: Create table if it does not exist #56

Closed MickL closed 4 years ago

MickL commented 4 years ago

It would be great to have an option in the Table decorator to create it if it does not exist.

breath103 commented 4 years ago

Table already has it. (Table.createTable()) as class method. we keeping it as "method" because if you just upload that to production and it automatically create table on infrastructure without any warning, that's just too much. that kind of thing should be done in code-as-infrastructure such as cloudformation.