#' @include DoordaHostConnection.R dbGetQuery.R
NULL
setMethod('dbListTables',
'DoordaHostConnection',
function(conn, pattern, ...) {
if (!missing(pattern)) {
statement <- paste('SHOW TABLES LIKE', dbQuoteString(conn, pattern))
} else {
statement <- 'SHOW TABLES'
}
rv <- dbGetQuery(conn, statement)
if (nrow(rv)) {
return(rv[['Table']])
} else {
return(character(0))
}
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.