Python 有没有提供像 PHP 框架里面 sql 操作方法的模块?

2018-05-22 17:20:53 +08:00
 yoke123

写原生 sql 写多了 看着难受

自己封装一个吗

2230 次点击
所在节点    Python
10 条回复
shiroming
2018-05-22 17:30:47 +08:00
orm ? sqlalchemy
cdwyd
2018-05-22 17:48:31 +08:00
peewee 简单好用
vZexc0m
2018-05-22 17:56:26 +08:00
不同数据库不同驱动,mysql - pymysql,postgresql-psycopg2
John60676
2018-05-22 17:57:44 +08:00
sqlalchemy + 1
Hopetree
2018-05-22 18:39:15 +08:00
数据库的链接库都可以,直接运行 SQL 语句
ZeroW
2018-05-22 20:07:53 +08:00
peewee
wongskay
2018-05-22 20:08:11 +08:00
sqlalchemy
summerwar
2018-05-22 20:12:18 +08:00
sqlalchemy + 1
lazysoft
2018-05-22 20:20:31 +08:00
刚刚用完 pymysql。。。
herozhang
2018-05-22 20:21:18 +08:00
peewee +1

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/456881

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX