MonetDB.R (version 1.0.1)

mq: Connect to a database, run a single SELECT query, and disconnect again.

Description

mq(...) provides a short way to connect to a MonetDB database, run a single SELECT query, and disconnect again.

Usage

mq(dbname, query, ...)

Arguments

dbname

Database name

query

SQL SELECT query to run

...

Other options for dbConnect

Value

Returns a data frame that contains the result of the passed query or an error if something went wrong.

See Also

dbConnect mc

Examples

Run this code
# NOT RUN {
  mq("demo","SELECT 1")
# }

Run the code above in your browser using DataLab