Description Usage Arguments Details Value Note See Also Examples
Reads a SQL statement from a file or connection string.
1 2 3 |
... |
arguments passed to |
strip.comments |
logical; Strip block and inline comments from sql.
Default: |
For converting a character vector to a sql
, see sql
.
...
is passed to readLines
and can provide either
a connection object or a character vector denoting a path to a local file.
The resulting text is coerced to a sql
object using sql
.
strip.comments
strips comments from the SQL.
an object of class sql, i.e. string (character) containing a SQL statement
read.sql
is an alias for sql_read
. The latter aligns with the
conventions of this package, i.e. exported functions are prefixed with
sql_
, while the former conforms to the conventions of base R where
functions for reading data begin with read.
. The developer is free
to follow the convention of this package or base R.
For finer contol of stipping comments see: sql_strip_comments
.
For rendering a mustache style SQL template see: sql_render
1 2 3 4 5 | ## Not run:
sql_read( "path/to/file" )
sql_read( connection )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.