safeSQL: Return a function that safely performs sql queries on a...

Description Usage Arguments Value

Description

This uses the 'params' parameter for DBI::dbGetQuery and DBI::dbExecute (for RSQLite and ":" parameters) or dbQuoteStrings (for MySQL or RSQLite " prevent e.g. SQL injection attacks.

Usage

1
safeSQL(con)

Arguments

con

RSQLite connection to database, as returned by safeSQLiteConnect(), or character scalar giving path to SQLite database, or MySQLConnection, or dplyr::src

Value

a function, S with class "safeSQL" taking two or more parameters:

For RSQLite, these items are passed to data.frame, along with the parameter stringsAsFactors=FALSE.


jbrzusto/motus-R-package documentation built on May 18, 2019, 7:03 p.m.