Python SQLAlchemy笔记

关于Python使用 SQLAlchemy 这个orm的文档手册,目前碰到了一些问题,搜到了此手册, 后面在详细研究下


  • 报错: (pymysql.err.InternalError) (1205, ‘Lock wait timeout exceeded; try restarting transaction’)

错误代码 后续补上


  • 解决方式

  • 错误提示: sqlalchemy.exc.InterfaceError: (pymysql.err.InterfaceError) (0, ‘’)

https://stackoverflow.com/questions/6650940/interfaceerror-0


SQLAlchemy 执行原生 sql

https://stackoverflow.com/questions/17972020/how-to-execute-raw-sql-in-flask-sqlalchemy-app

事物
https://stackoverflow.com/questions/14054787/sqlalchemy-core-insert-multiple-rows-from-a-tuple-instead-of-dict

https://www.cnblogs.com/cwp-bg/p/8876012.html


动态创建数据库

https://stackoverflow.com/questions/973481/dynamic-table-creation-and-orm-mapping-in-sqlalchemy

https://stackoverflow.com/questions/14054787/sqlalchemy-core-insert-multiple-rows-from-a-tuple-instead-of-dict

还有个ORM peewee https://github.com/coleifer/peewee

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值