td_get_context | Teradata Package for R - td_get_context - Teradata Package for R

Teradata® Package for R User Guide

Product
Teradata Package for R
Release Number
17.00
Published
July 2021
Language
English (United States)
Last Update
2023-08-08
dita:mapPath
yih1585763700215.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
B700-4005
Product Category
Teradata Vantage

Use the td_get_context function to retrieve a named list of attributes in an existing context.

Example

td_create_context(dsn = "TeradataDSN")
context <- td_get_context()
 
# To retrieve the connection in the current context, use
td_get_context()$connection
 
# To retrieve the temorary database in the current context, use
td_get_context()$temp.database
 
# To retrieve the default database in the current context, use
td_get_context()$database
 
td_remove_context()