CData Python Connector for Amazon Athena

Build 21.0.7929

Connecting

Connecting with the cdata.amazonathena Module:

The connector's module is used directly to establish a connection with the data source. It is able to take a connection string as its argument, as in the below example:

import cdata.amazonathena as mod
conn = mod.connect("AWSAccessKey='a123';AWSSecretKey='s123';AWSRegion='IRELAND';Database='sampledb';S3StagingDirectory='s3://bucket/staging/';")

Once the connection is created, you can execute subsequent SQL queries using it.

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