-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Remove rx.Model #6244
Copy link
Copy link
Open
Labels
roadmaphttps://github.com/reflex-dev/reflex/issues/2727https://github.com/reflex-dev/reflex/issues/2727
Description
rx.Model is already deprecated. This issue tracks its full removal from the codebase.
Context
rx.Model was a thin wrapper around SQLModel intended to simplify database models. In practice it created a parallel ORM that confused users who already knew SQLAlchemy and limited access to the full ecosystem. It has been deprecated and users have been directed to use standard model bases instead.
What to Remove
rx.Modelclass and all supporting code- Any internal usage of
rx.Modelin examples, templates, or tests - Related documentation referencing
rx.Modelas current API
What Users Should Use Instead
sqlalchemy.orm.DeclarativeBase(standard SQLAlchemy)sqlmodel.SQLModel(if they prefer SQLModel's API)sqlalchemy.orm.MappedAsDataclass(for dataclass-style models)- Any SQLAlchemy-compatible model base
Tracking
Parent: ENG-9181 (Database & ORM: Less Opinionated, More Compatible)
Roadmap: #2727
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
roadmaphttps://github.com/reflex-dev/reflex/issues/2727https://github.com/reflex-dev/reflex/issues/2727