Makes use of 'DBI' and dbGetQuery() to preview a SQL statement for a
given 'DBI' connection.
previewSql(conn, statement, ...)The 'DBI' connection to be used to execute this statement.
The SQL statement to execute. Either a path to a file containing a SQL statement or the SQL statement itself.
Additional arguments to be used in dbGetQuery().
The previewSql function was introduced in RStudio 1.2.600