File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -47,3 +47,4 @@ Patches and Suggestions
47
47
- Ignacy Sokołowski
48
48
- Steven Harms
49
49
- David Lord @davidism
50
+ - Alec Nikolas Reiter @justanr
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ Version 3.0
9
9
10
10
In development, codename Dubnium
11
11
12
+ - Added support for custom ``query_class`` and ``model_class`` as args
13
+ to the ``SQLAlchemy`` constructor.
12
14
- Fix minimum SQLAlchemy version requirement (0.9.2 or above), introduced
13
15
by custom MetaData support in 2.1.
14
16
Original file line number Diff line number Diff line change @@ -709,6 +709,16 @@ class User(db.Model):
709
709
.. versionadded:: 2.1
710
710
The `metadata` parameter was added. This allows for setting custom
711
711
naming conventions among other, non-trivial things.
712
+
713
+ .. versionadded:: 3.0
714
+ The `query_class` parameter was added, to allow customisation
715
+ of the query class, in place of the default of :class:`BaseQuery`.
716
+
717
+ The `model_class` parameter was added, which allows a custom model
718
+ class to be used in place of :class:`Model`.
719
+
720
+ .. versionchanged:: 3.0
721
+ Utilise the same query class across `session`, `Model.query` and `Query`.
712
722
"""
713
723
714
724
#: Default query class used by :attr:`Model.query` and other queries.
You can’t perform that action at this time.
0 commit comments