CData Python Connector for Greenplum

Build 21.0.7930

Connecting

Connecting with a Dialect URL

A specific URL format is used to establish a connection using SQLAlchemy. For this connector, either of the following URL formats are acceptable when creating the engine:

Format 1


from sqlalchemy import create_engine
engine = create_engine("cdata_greenplum:///?User=user;Password=admin;Database=dbname;Server=127.0.0.1;Port=5432")

Format 2


from sqlalchemy import create_engine
engine = create_engine("cdata_greenplum://MyUser:MyPassword@MyServer:MyPort/MyDatabase")

Copyright (c) 2021 CData Software, Inc. - All rights reserved.
Build 21.0.7930