You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing so raises dynamorm.exceptions.MissingTableAttribute: Missing required Table attribute: hash_key errors. I see that the dynamorm metaclass is doing some fancy stuff behind the scenes with the Table attribute, but it does that with Schemas too and Schema inheritance is supported now.
Is there a suggested way to do what I'm looking for with Table inheritance?
The text was updated successfully, but these errors were encountered:
We don't currently support Table inheritance because of the way our meta-class works. We would need to do something similar to #46 where we added support for inheritance on the Model.
I'm assuming you can't sufficiently predict the table name beforehand? I
use a function to generate part of the table name dynamically (for
dev/staging/prod).
On Thu, Jun 18, 2020 at 5:58 AM Thomas Passer Jensen < ***@***.***> wrote:
Does a workaround exist for when the table named is not known when the
model class is defined? When a table is defined in CloudFormation without
the TableName attribute it receives an autogenerated "unique physical ID".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABR2MRNSY5VMO2UMUUGJA7DRXHQNDANCNFSM4KKXQKNQ>
.
Is building the Dynamodel's subclass Table attribute through inheritance supported?
Doing so raises
dynamorm.exceptions.MissingTableAttribute: Missing required Table attribute: hash_key
errors. I see that the dynamorm metaclass is doing some fancy stuff behind the scenes with the Table attribute, but it does that with Schemas too and Schema inheritance is supported now.Is there a suggested way to do what I'm looking for with Table inheritance?
The text was updated successfully, but these errors were encountered: