返回 Skill 列表
extension
分类: 开发与工程无需 API Key

database-operations

关于如何使用SQLAlchemy编写数据库查询的说明

person作者: jakexiaohubgithub

When performing database operations using SQLAlchemy, follow these guidelines to ensure efficient and maintainable code:

  • Avoid for-loops. Instead always prefer bulk operations using SQLAlchemy's built-in methods or use SQL joins to get related data in a single query.
  • Database operations should be contained in repository classes