Skip to content

Unregister one or more frames by name

Source code

Description

[Experimental]

Usage

<SQLContext>$unregister(names)

Arguments

names Names of the tables to unregister.

Value

An object of class “polars_sql_context”

Examples

library("polars")

df <- pl$DataFrame(ints = 9:5)
lf1 <- pl$LazyFrame(text = letters[1:3])
lf2 <- pl$LazyFrame(misc = "testing1234")

# Register with a SQLContext object:
ctx <- pl$SQLContext(test1 = df, test2 = lf1, test3 = lf2)
ctx$tables()
#> [1] "test1" "test2" "test3"
# Unregister one or more of the tables:
ctx$unregister(c("test1", "test3"))$tables()
#> [1] "test2"
ctx$unregister("test2")$tables()
#> character(0)