PynamoDB icon indicating copy to clipboard operation
PynamoDB copied to clipboard

[Question] How can I look up the name of the database table?

Open boldandbusted opened this issue 2 years ago • 1 comments

Howdy. Sorry for the simple question, but I couldn't find it in the docs. How can I look up the name of the database the model has created? Is there a method attached to the model class where I can look up this sort of thing?

Apologies if my searching skills are lacking. I did check the API docs, but came up empty. Thanks!

boldandbusted avatar Oct 12 '21 21:10 boldandbusted

In DynamoDB those are called "tables". Each model has a Meta class with a table_name property.

ikonst avatar Oct 13 '21 02:10 ikonst