mock-db-methods {dittodb} | R Documentation |
Methods for interacting with DB mocks instead of an actual database
Description
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. These aren't used directly, but are part of
how dittodb
works.
Usage
## S4 method for signature 'DBIMockConnection'
dbDisconnect(conn, ...)
dbMockConnect(drv, ...)
## S4 method for signature 'DBIMockConnection,character'
dbExistsTable(conn, name, ...)
## S4 method for signature 'DBIMockConnection,Id'
dbExistsTable(conn, name, ...)
## S4 method for signature 'DBIMockConnection'
dbListTables(conn, ...)
## S4 method for signature 'DBIMockConnection,character'
dbListFields(conn, name, ...)
## S4 method for signature 'DBIMockConnection,Id'
dbListFields(conn, name, ...)
## S4 method for signature 'DBIMockConnection,ANY'
dbListFields(conn, name, ...)
## S4 method for signature 'DBIMockConnection,character'
dbSendQuery(conn, statement, ...)
## S4 method for signature 'DBIMockConnection,SQL'
dbSendQuery(conn, statement, ...)
## S4 method for signature 'DBIMockConnection,character'
dbSendStatement(conn, statement, ...)
## S4 method for signature 'DBIMockResult'
dbFetch(res, n = -1, ...)
## S4 method for signature 'DBIMockResult,ANY'
fetch(res, n = -1, ...)
## S4 method for signature 'DBIMockResult,missing'
fetch(res, n = -1, ...)
## S4 method for signature 'DBIMockResult'
dbClearResult(res, n, ...)
## S4 method for signature 'DBIMockResult'
dbHasCompleted(res, ...)
## S4 method for signature 'DBIMockRPostgreSQLConnection,character'
dbGetQuery(conn, statement, ...)
## S4 method for signature 'DBIMockResult'
dbGetRowsAffected(res, ...)
## S4 method for signature 'DBIMockConnection'
dbGetInfo(dbObj, ...)
## S4 method for signature 'DBIMockConnection,character,data.frame'
dbWriteTable(conn, name, value, ...)
## S4 method for signature 'DBIMockConnection,character'
dbRemoveTable(conn, name, ...)
## S4 method for signature 'DBIMockResult'
dbColumnInfo(res, ...)
## S4 method for signature 'DBIMockResult'
dbGetInfo(dbObj, ...)
## S4 method for signature 'DBIMockRPostgresConnection,character'
dbQuoteIdentifier(conn, x, ...)
## S4 method for signature 'DBIMockRPostgresConnection,SQL'
dbQuoteIdentifier(conn, x, ...)
## S4 method for signature 'DBIMockRPostgresConnection,character'
dbQuoteString(conn, x, ...)
## S4 method for signature 'DBIMockRPostgresConnection,SQL'
dbQuoteString(conn, x, ...)
## S4 method for signature 'DBIMockMariaDBConnection,character'
dbQuoteString(conn, x, ...)
## S4 method for signature 'DBIMockMariaDBConnection,SQL'
dbQuoteString(conn, x, ...)
## S4 method for signature 'DBIMockConnection'
dbBegin(conn, ..., name = NULL)
## S4 method for signature 'DBIMockConnection'
dbCommit(conn, ..., name = NULL)
## S4 method for signature 'DBIMockConnection'
dbRollback(conn, ..., name = NULL)
Arguments
conn |
a database connection (for dispatch with these methods, it should
be of class |
... |
arguments passed on inside of the methods |
drv |
a DB driver for use in |
name |
name of the table (for |
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) |
dbObj |
a database object (a connection, result, etc.) for use in
|
value |
a value (generally a |
x |
a name to quote (for |