# 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)
# Define a source from file.
sqrlSource("ratatoskr", "~/yggdrasil")
# Submit a query to that source.
ratatoskr("select messages from vedfolnir ",
"where addressee = 'nidhogg'")
# }
Run the code above in your browser using DataLab