且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在 Python 中将 MySQL 与 AWS Lambda 结合使用的问题

更新时间:2023-10-03 14:15:40

对于像 Lambda 这样的用例,你会更高兴使用像 PyMySQL.

For a use case like Lambda you'll be a lot happier using a pure python implementation like PyMySQL.

它是 MySQLdb 的替代品,遵循 Python 数据库 API规格.对于诸如触发的 Lambda 事件之类的大多数事情,它也一样快.

It's a drop in replacement for MySQLdb that follows the Python Database API specification. For most things like triggered Lambda events it will be just as fast.

我在生产中经常使用它,而且效果很好.

I've used it in production a lot and it works great.