Various methods (dbSendQuery
, dbFetchQuery
) that are mocks of the DBI
methods of the same name. Instead of actually interacting with a database,
they read in mock responses and the code proceeds after that.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## S4 method for signature 'DBIMockConnection'
dbDisconnect(conn, ...)
## S4 method for signature 'DBIMockConnection'
dbListTables(conn, ...)
## S4 method for signature 'DBIMockConnection,character'
dbSendQuery(conn, statement, ...)
## S4 method for signature 'DBIMockResult'
dbFetch(res, n = -1, ...)
## S4 method for signature 'DBIMockResult'
fetch(res, n = -1, ...)
## S4 method for signature 'DBIMockResult'
dbClearResult(res, n, ...)
## S4 method for signature 'DBIMockResult'
dbHasCompleted(res, ...)
|
conn |
a database connection (for dispatch with these methods, it should
be of class |
... |
arguments passed on inside of the methods |
statement |
an SQL statement to execute |
res |
a result object (for dispatch with these methods, it should
be of class |
n |
number of results to fetch (ignored) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.