Teradata Package for R Function Reference | 17.20 - td_get_context - Teradata Package for R - Look here for syntax, methods and examples for the functions included in the Teradata Package for R.

Teradata® Package for R Function Reference

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for R
Release Number
17.20
Published
March 2024
ft:locale
en-US
ft:lastEdition
2024-05-03
dita:id
TeradataR_FxRef_Enterprise_1720
Product Category
Teradata Vantage
Get the current context

Description

Returns a named list of attributes in an existing Teradata context.

Usage

td_get_context()

Value

A named list containing attributes to the current context. NULL if a context does not exist.

See Also

td_create_context , td_set_context

Examples


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()