# NOT RUN {
require(SQRL)
# Show (pre)defined data sources.
sqrlSources()
# Define a new data source.
sqrlSource("mysource",
driver = "MYSQL ODBC 5.3 ANSI Driver",
server = "localhost",
user = "<uid>",
password = "<pwd>")
# Obtain help on usage (in text format).
mysource("help", "text")
# }
# NOT RUN {
# Submit a query to the new source.
mysource("select 1")
# Submit a parameterised query from file.
mysource("transactions.sqrl", customerid = 111111)
# }
Run the code above in your browser using DataLab