PinBar
PinBar
@ludi1991 之前版本sql语句中排序不会执行,pip install fast_sql==1.4.2 会执行排序语句,还有rownum 分页方式也有修改,可以试下是否还有重复数据
I encountered an issue with SQLAlchemy sessions not closing properly when using StreamingResponse in FastAPI. The problem was that the session was not being closed, which led to warnings about...
@Chanli520 readme 没有说明清楚,已经修改了,这个只提供了简易版 的django ORM,不支持连表, __双下划线查询,如果需要join 复杂查询,建议直接使用sqlalchemy 自己join查询。
> 使用sqlalchemy自己加入查询,可以给一些例子写在Redme里面吗。主要能实现也行 @Chanli520 和你直接用sqlalchemy一样的写法, 可以看下sqlalchemy 2.0 的select 使用方式,或者用同步的 g.session_sync.query 也可以 ```python from sqlalchemy import select from core.context import g from dao.base.database_fetch import database from models.user import User, Group async def...
> 好的!有解决方法就可以!感觉也不需要封装 这个个人习惯吧,封装基础功能,可以不用,这个不冲突,不过为每个模型类都单独写一遍 get_by_id 或者create 之类的那也蛮奇怪的。