How to connect to a cluster in Amazon Redshift using SQLAlchemy?

后端 未结 5 1284
既然无缘
既然无缘 2021-01-12 06:17

In Amazon Redshift\'s Getting Started Guide, it\'s mentioned that you can utilize SQL client tools that are compatible with PostgreSQL to connect to your Amazon Redshift Clu

5条回答
  •  情歌与酒
    2021-01-12 06:22

    I don't think SQL Alchemy "natively" knows about Redshift. You need to change the JDBC "URL" string to use postgres.

    jdbc:postgres://shippy.cx6x1vnxlk55.us-west-2.redshift.amazonaws.com:5439/shippy
    

    Alternatively, you may want to try using sqlalchemy-redshift using the instructions they provide.

提交回复
热议问题