Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据AWS 最佳实践,数据库连接应该在处理函数之外初始化。
如何使用在 lambda 中运行的 Flask 和 Flask-SQLalchemy 代码来实现这一点?
我的代码使用应用程序工厂,例如: handler = create_app()。