#' colnames
#' @name colnames
#' @example
#' {
#' data(mtcars2)
#' my_db <- dbR6$new()
#' my_db$colnames("mtcars_db")
#' }
#' @rdname colnames
#' @aliases colnames,dbR6
#' @exportMethod colnames
dbR6_colnames <- function(...) {
if (!tabname %in% self$list_tables())
return(paste0("Table '", tabname, "' not found in database"))
RSQLite::dbListFields(self$get_where()$data, tabname)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.