Skip to content

Commit

Permalink
export isAndromedaTable
Browse files Browse the repository at this point in the history
  • Loading branch information
ob325 committed Dec 6, 2024
1 parent b646d62 commit 6c69811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/Object.R
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,7 @@ isAndromeda <- function(x) {
#' @export
isValidAndromeda <- function(x) {
if(!isAndromeda(x)) rlang::abort(paste(deparse(substitute(x)), "is not an Andromeda object."))
#return(duckdb::dbIsValid(x))
return(TRUE)
return(duckdb::dbIsValid(x))
}

#' @param con An [`Andromeda`] object.
Expand Down Expand Up @@ -491,6 +490,7 @@ if (!isValidAndromeda(x))
#' isAndromedaTable(andr$cars)
#' close(andr)
#' }
#' @export
isAndromedaTable <- function(tbl) {
return(inherits(tbl, "tbl") && inherits(dbplyr::remote_con(tbl), "Andromeda"))
}

0 comments on commit 6c69811

Please sign in to comment.