Can SQLAlchemy be used with Google Cloud SQL?

11 浏览
0 Comments

Can SQLAlchemy be used with Google Cloud SQL?

我已经查阅了Google Cloud SQL的文档和各种搜索,但我找不到是否可以在Google Cloud SQL中使用SQLAlchemy以及连接URI应该是什么。

我想要使用Flask-SQLAlchemy扩展,并需要以下连接字符串:

mysql://用户名:密码@服务器/数据库

我看到了Django的示例,但它似乎使用了与连接字符串不同的配置样式。 https://developers.google.com/cloud-sql/docs/django

Google Cloud SQL文档:

https://developers.google.com/cloud-sql/docs/developers_guide_python

0