I have some tables in a keyspace and I want query like ORM in python DataStax driver
I have lots of tables with huge schema. any other method to create a table object without writing the Table class
eg:
if I have a table called test_table
then
table_object=Table(table_name,metadata,autoload=True)
You haven't provided a lot of information so I'm not really sure what you're after. In any case, you might be interested in Models in the Python driver.
Here's an example from the docs for a class
Person
:which maps to this CQL table:
You can then perform CRUD operations on the table using the
Person
object.For details and more examples, see Models with the Cassandra Python driver. Cheers!