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.
# S4 method for DBIMockConnection
dbDisconnect(conn, ...)# S4 method for DBIMockConnection,character
dbExistsTable(conn, name, ...)
# S4 method for DBIMockConnection,Id
dbExistsTable(conn, name, ...)
# S4 method for DBIMockConnection
dbListTables(conn, ...)
# S4 method for DBIMockConnection,character
dbListFields(conn, name, ...)
# S4 method for DBIMockConnection,Id
dbListFields(conn, name, ...)
# S4 method for DBIMockConnection,ANY
dbListFields(conn, name, ...)
# S4 method for DBIMockConnection,character
dbSendQuery(conn, statement, ...)
# S4 method for DBIMockResult
dbFetch(res, n = -1, ...)
# S4 method for DBIMockResult,ANY
fetch(res, n = -1, ...)
# S4 method for DBIMockResult,missing
fetch(res, n = -1, ...)
# S4 method for DBIMockResult
dbClearResult(res, n, ...)
# S4 method for DBIMockResult
dbHasCompleted(res, ...)
# S4 method for DBIMockRPostgreSQLConnection,character
dbGetQuery(conn, statement, ...)
# S4 method for DBIMockConnection
dbGetInfo(dbObj, ...)
# S4 method for DBIMockConnection,character,data.frame
dbWriteTable(conn, name, value, ...)
# S4 method for DBIMockConnection,character
dbRemoveTable(conn, name, ...)
# S4 method for DBIMockResult
dbColumnInfo(res, ...)
# S4 method for DBIMockResult
dbGetInfo(dbObj, ...)
# S4 method for DBIMockRPostgresConnection,character
dbQuoteIdentifier(conn, x, ...)
# S4 method for DBIMockRPostgresConnection,SQL
dbQuoteIdentifier(conn, x, ...)
a database connection (for dispatch with these methods, it should
be of class DBIMockConnection)
arguments passed on inside of the methods
name of the table (for dbListFields, dbWriteTable,
dbRemoveTable)
an SQL statement to execute
a result object (for dispatch with these methods, it should be of
class DBIMockResult)
number of results to fetch (ignored)
a database object (a connection, result, etc.) for use in
dbGetInfo
a value (generally a data.frame) for use in dbWriteTable
a name to quote (for dbQuoteIdentifier)