Description Usage Arguments Value Examples
Note - must be a single SQL clause. Queries with multiple clauses should use the TBD function instead, which relies on the snowsql CLI application.
1 |
conn |
a DBI connection object such as connect_cdw() |
sql |
path to a .sql file |
data |
Query results as a data frame |
fields |
field names |
elapsed_seconds |
elapsed system time to run the query |
status_message |
the number of records & variables in the results |
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
conn <- connect_cdw()
sql <- read_sql("path/to/some_file.sql")
cdwSQL(conn, sql)
disconnect_cdw(conn)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.