CData Python Connector for Amazon Athena

Build 21.0.7929

Connecting

Connecting with a Dialect URL

A specific URL format is used to establish a connection using SQLAlchemy.

from sqlalchemy import create_engine
engine = create_engine("amazonathena:///?AWSAccessKey='a123';AWSSecretKey='s123';AWSRegion='IRELAND';Database='sampledb';S3StagingDirectory='s3://bucket/staging/';")

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