I am using Django Cassandra and I have defined my model, which I have this to name a table:
class Meta:
db_table = "table_name"
However, Cassandra doesn't create the table with my custom name. What am I missing?
https://datastax.github.io/python-driver/api/cassandra/cqlengine/models.html
table_name = None Optional. Sets the name of the CQL table for this model. If left blank, the table name will be the name of the model, with it’s module name as it’s prefix. Manually defined table names are not inherited.
class Meta:
__table_name__ = "table_name"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With