CData Python Connector for OData

Build 20.0.7587

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


import sqlalchemy as orm
engine = orm.create_engine("odata:///?User=myuseraccount;Password=mypassword;URL=http://myserver/myOrgRoot;")

Format 2


import sqlalchemy as orm
engine = orm.create_engine("odata://MyUser:MyPassword@/?URL=http://myserver/myOrgRoot;")

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7587