`Pydantic.BaseModel` is the new dataclass, I think it should be considered for the future versions of `cassandra.Model`

Description

This enhancement could open avenues for high level programming of cassandra rows. Sort of like ORM, but OM in Cassandra’s case.

Features

  • Serialization, and desiralization

  • Polymorphism of cassandra models

  • Native computed fields support (will be implemented in pydantic 2.x)

  • Speed-up of at least 20x when it comes to working with models (pydantic 2.x)

Please add your own ideas.

 

Pydantic 2.x

Pydantic 2.x will be a significant enhancement to the framework. The transition should be painless for 1.x; don’t quote me.

Environment

None

Pull Requests

None

Activity

Details

Assignee

Reporter

Labels

Epic Name

Priority

Created August 23, 2022 at 12:13 PM
Updated August 23, 2022 at 12:14 PM