Teradata Package for Python Function Reference - 17.00 - set_context - Teradata Package for Python

Teradata® Package for Python Function Reference

Product
Teradata Package for Python
Release Number
17.00
Release Date
April 2021
Content Type
Programming Reference
Publication ID
B700-4008-070K
Language
English (United States)
teradataml.context.context.set_context = set_context(tdsqlengine, temp_database_name=None)
DESCRIPTION:
    Specifies a Teradata Vantage sqlalchemy engine as current context.
 
PARAMETERS:
    tdsqlengine:
        Required Argument.
        Specifies Teradata Vantage sqlalchemy engine object that should be used to establish a Teradata Vantage connection.
        Types: str
        
    temp_database_name:
        Optional Argument.
        Specifies the temporary database name where temporary tables, views will be created.
        Types: str
 
RETURNS:
    A Teradata Vantage connection object.
 
RAISES:
    TeradataMlException
 
EXAMPLES:
    set_context(tdsqlengine = td_sqlalchemy_engine)