Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

previewSql

Preview SQL statement


Description

Makes use of 'DBI' and dbGetQuery() to preview a SQL statement for a given 'DBI' connection.

Usage

previewSql(conn, statement, ...)

Arguments

conn

The 'DBI' connection to be used to execute this statement.

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().

Note

The previewSql function was introduced in RStudio 1.2.600


rstudioapi

Safely Access the RStudio API

v0.13
MIT + file LICENSE
Authors
Kevin Ushey [aut, cre], JJ Allaire [aut], Hadley Wickham [aut], Gary Ritchie [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.