官术网_书友最值得收藏!

Chapter 3. Data Modeling in Flask

This chapter covers one of the most important parts of any application, that is, the interaction with database systems. This chapter will take us through how Flask can connect to database systems, define models, and query the databases for retrieval and feeding of data.

In this chapter, we will cover the following recipes:

  • Creating a SQLAlchemy DB instance
  • Creating a basic product model
  • Creating a relational category model
  • Database migration using Alembic and Flask-Migrate
  • Model data indexing with Redis
  • Opting the NoSQL way with MongoDB
主站蜘蛛池模板: 乐业县| 建湖县| 东兴市| 行唐县| 瑞丽市| 曲麻莱县| 峨边| 明星| 乐东| 饶平县| 万全县| 葫芦岛市| 岑溪市| 桐庐县| 两当县| 荔浦县| 韶关市| 新河县| 安远县| 彭山县| 长治市| 乌拉特后旗| 谢通门县| 陕西省| 盐边县| 龙胜| 桓台县| 仪征市| 阳朔县| 古浪县| 卢湾区| 临沂市| 桂平市| 滁州市| 读书| 苏尼特左旗| 濉溪县| 平乐县| 黑河市| 遂平县| 贵溪市|