database_connections.Connections package
Submodules
database_connections.Connections.athena module
- class database_connections.Connections.athena.Athena(**kwargs)[source]
Bases:
DatabaseConnection
Need the following attributes to be stored: aws_conn_params = { ‘aws_access_key_id’ : ‘XXXXXX’,
‘aws_secret_access_key’ : ‘XXXXXX’, ‘aws_session_token’ : ‘XXXXXX’, ‘N # of other params’ : ‘XXXXXX’, ‘region_name’ : ‘us-east-1’, ‘work_group’ : ‘s3_staging_dir’ : }
database_connections.Connections.databricks module
- class database_connections.Connections.databricks.Databricks(**kwargs)[source]
Bases:
DatabaseConnection
To run the Databricks module, you need to set the following attributes:
server_hostname http_path access_token
database_connections.Connections.oracle module
- class database_connections.Connections.oracle.Oracle(**kwargs)[source]
Bases:
DatabaseConnection
To run the Oracle module, you need to set the following attributes:
dsn username passkey_path encpass_path
or
host port sid username passkey_path encpass_path
database_connections.Connections.redshift module
- class database_connections.Connections.redshift.Redshift(**kwargs)[source]
Bases:
DatabaseConnection
To run the SQLite module, you need to set the following attributes:
engine = ‘engine code’ schema = ‘dfg_analytics’
database_connections.Connections.sqlite module
- class database_connections.Connections.sqlite.SQLite(**kwargs)[source]
Bases:
DatabaseConnection
To run the SQLite module, you need to set the following attributes:
db_path = ‘/path/to/database.db’
database_connections.Connections.teradata module
- class database_connections.Connections.teradata.Teradata(**kwargs)[source]
Bases:
DatabaseConnection
To run the teradata module, you need to set the following attributes:
host = username = passkey_path= ‘PassKey.properties’ encpass_path= ‘EncPass.properties’