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

Teradata® R Package Function Reference

Product
Teradata R Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2020-02-28
dita:id
B700-4007
lifecycle
previous
Product Category
Teradata Vantage

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