File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ _to see this in a real world example take a look at my other projects_ [Flask-Cm
1919- basemodels.py
2020 - with a sqlalchemy compatible BaseMixin class
2121 - provides many useful CRUD operations, IE: model.save(), model.delete()
22- - BaseMixin generates __ tablename__ automaticlly
23- - BaseMixin adds an auto incrementing ` id ` field, as the primary_key to each model
24- - BaseMixin.session is current model classes session
25- - BaseMixin.engine is the current db engine
26- - BaseMixin.query is the models sqlalchemy query from its session
27- - BaseMixin.get_all() -> function to return all of a model
28- - BaseMixin.get(* args,** kwargs) -> get single model by attr values, mainly for id=x
22+ - ` BaseMixin ` generates ` __tablename__ ` automaticlly
23+ - ` BaseMixin ` adds an auto incrementing ` id ` field, as the primary_key to each model
24+ - ` BaseMixin.session ` is current model classes session
25+ - ` BaseMixin.engine ` is the current db engine
26+ - ` BaseMixin.query ` is the models sqlalchemy query from its session
27+ - ` BaseMixin.get_all() ` ` -> ` function to return all of a model
28+ - ` BaseMixin.get(*args,**kwargs) ` ` -> ` get single model by attr values, mainly for id=x
2929
3030- baseviews.py
3131 - with a BaseView class that is subclassed from Flask.views.MethodView to allow easy definition of view responses to get and post requests.
You can’t perform that action at this time.
0 commit comments