View source: R/pmap_db_utilities.R
query_db | R Documentation |
This function allows a query on the database, using a string. Is equivalent to tbl(con,sql(query)) or dbGetQuery(con,query)
query_db(query, engine = default_engine)
query |
a user-defined query string |
engine |
a dbConnect connection object |
a (lazy) dplyr::tbl / data frame object with results
query_db("SELECT COUNT(*) AS CT FROM MYSCHEMA.MYTABLE", myconnection)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.