You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.. _SQLAlchemy's native support for data classes: https://docs.sqlalchemy.org/en/20/changelog/whatsnew_20.html#native-support-for-dataclasses-mapped-as-orm-models
99
+
100
+
About the ``SQLAlchemy`` object
101
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
102
+
73
103
Once constructed, the ``db`` object gives you access to the :attr:`db.Model <.SQLAlchemy.Model>` class to
74
104
define models, and the :attr:`db.session <.SQLAlchemy.session>` to execute queries.
75
105
@@ -122,7 +152,7 @@ The table name ``"user"`` will automatically be assigned to the model's table.
122
152
123
153
It's also possible to use the SQLAlchemy 2.x style of defining models,
124
154
as long as you initialized the extension with an appropriate 2.x model base class
125
-
as described above.
155
+
as described in :ref:`sqlalchemy2-initialization`.
0 commit comments