@@ -78,7 +78,7 @@ class SQLAlchemyProxy(Generic[_SQLAlchemyLiteDB_co, _ModelLite_co]):
78
78
`flask_sqlalchemy_lite.SQLAlchemy`, it can mimic the usage of
79
79
`flask_sqlalchemy.SQLAlchemy`.
80
80
81
- Note that not all the functionalities of `flask_sqlalchemy_lite.SQLAlchemy` can
81
+ Note that not all the functionalities of this proxy can
82
82
be exactly the same as the those of `flask_sqlalchemy.SQLAlchemy`. In specific,
83
83
this proxy will do the following things:
84
84
@@ -138,14 +138,16 @@ def __init__(
138
138
139
139
@property
140
140
def db (self ) -> _SQLAlchemyLiteDB_co :
141
- """Property: The `db` instance provided by the Flask SQLAlchemy extension."""
141
+ """Property: The `db` instance provided by the Flask SQLAlchemy Lite
142
+ extension."""
142
143
return self .__db
143
144
144
145
@property
145
146
def Model (self ) -> Type [_ModelLite_co ]:
146
147
"""Property: The `Model` type. It can be used as the base class of the
147
- SQLAlchemy models. This value is `model_class` passed to the initialization
148
- of this wrapper.
148
+ SQLAlchemy models. This value is identical to `model_class` passed to the
149
+ initialization of this wrapper. But note that `model_class` is already
150
+ modified for supporting extra functionalities.
149
151
"""
150
152
return self .__model_class
151
153
@@ -192,7 +194,7 @@ def Query(self) -> Type[sa_orm.Query]:
192
194
193
195
@property
194
196
def session (self ) -> sa_orm .scoped_session [sa_orm .Session ]:
195
- """The same as `self.db.session`.
197
+ """The usages are similar to those of `self.db.session`.
196
198
197
199
The default session for the current application context. It will be
198
200
closed when the context ends."""
0 commit comments