Skip to content

Commit

Permalink
fix: change relation to dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonov548 committed Jan 20, 2025
1 parent ac94d7d commit 829e2b4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/relational.R
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ rel_set_alias <- function(rel, alias) {
#' con <- DBI::dbConnect(duckdb())
#' rel <- rel_from_df(con, mtcars)
#' rel_alias(rel)
rel_alias2 <- function(rel) {
rethrow_rapi_rel_alias2(rel)
rel_alias2 <- function(df, con) {
rethrow_rapi_rel_alias2(df, con@conn_ref)
}

#' Set the internal alias for a DuckDB relation object
Expand All @@ -565,8 +565,8 @@ rel_alias2 <- function(rel) {
#' con <- DBI::dbConnect(duckdb())
#' rel <- rel_from_df(con, mtcars)
#' rel_set_alias(rel, "my_new_alias")
rel_set_alias2 <- function(rel, alias) {
rethrow_rapi_rel_set_alias2(rel, alias)
rel_set_alias2 <- function(df, con, alias) {
rethrow_rapi_rel_set_alias2(df, con@conn_ref, alias)
}

#' Transforms a relation object to a lazy data frame using altrep
Expand Down Expand Up @@ -677,8 +677,8 @@ rel_names <- function(rel) {
rethrow_rapi_rel_names(rel)
}

rel_names2 <- function(rel) {
rethrow_rapi_rel_names2(rel)
rel_names2 <- function(df, con) {
rethrow_rapi_rel_names2(df, con@conn_ref)
}

load_rfuns <- function() {
Expand Down

0 comments on commit 829e2b4

Please sign in to comment.