11 2021 档案
摘要:why need alembic? After defining ORM CLASS, we need to create table by the ORM class. https://docs.sqlalchemy.org/en/14/orm/tutorial.html#declare-a-ma
阅读全文
摘要:SQL COUNT() with GROUP by https://www.w3resource.com/sql/aggregate-functions/count-with-group-by.php The use of COUNT() function in conjunction with G
阅读全文
摘要:sqlalchemy https://www.sqlalchemy.org/ The Python SQL Toolkit and Object Relational Mapper SQLAlchemy is the Python SQL toolkit and Object Relational
阅读全文
摘要:django model https://docs.djangoproject.com/en/3.2/topics/db/models/ django的ORM工具, 具有非常简洁的接口,遵从django快速开发的理念。 但是此工具是跟django深度绑定的, 很难独立使用。 A model is t
阅读全文
摘要:Are locks unnecessary in multi-threaded Python code because of the GIL? https://stackoverflow.com/questions/105095/are-locks-unnecessary-in-multi-thre
阅读全文
摘要:Marking extra actions for routing https://www.django-rest-framework.org/api-guide/viewsets/#marking-extra-actions-for-routing ModelViewSet集成了 CRUD 所有功
阅读全文
摘要:lerna https://lerna.js.org/ https://github.com/lerna/lerna 对于规模大的项目, 使用单独一个库管理, 但是内部分为多个package的情况; 使用此工具管理。 Splitting up large codebases into separat
阅读全文
摘要:django migration https://docs.djangoproject.com/en/3.2/topics/migrations/ Migrations are Django’s way of propagating changes you make to your models (
阅读全文
摘要:react-sketch https://github.com/tbolis/react-sketch Sketch Tool for React-based applications, backed up by FabricJS tbolis.github.io/showcase/react-sk
阅读全文
摘要:Shell IO https://tecadmin.net/prompt-user-input-in-linux-shell-script/# Take Input on Termianl Let’s begin with input directly on terminal. Open a ter
阅读全文
摘要:mapDispatchToProps of react-redux https://react-redux.js.org/using-react-redux/connect-mapdispatch Two Forms of mapDispatchToProps The mapDispatchToP
阅读全文
摘要:echo模型 https://channels.readthedocs.io/en/stable/tutorial/part_2.html 浏览器请求, channels给响应。 receive回调接受消息, send接口发送响应消息 # chat/consumers.py import json
阅读全文