dbGetStatement-DatabaseConnectorResult-method: Get the statement associated with a result set

Description Usage Arguments Value See Also

Description

Returns the statement that was passed to dbSendQuery() or dbSendStatement().

\Sexpr[results=rd,stage=render]{DBI:::methods_as_rd("dbGetStatement")}

Usage

1
2
## S4 method for signature 'DatabaseConnectorResult'
dbGetStatement(res, ...)

Arguments

res

An object inheriting from DBIResult.

...

Other arguments passed on to methods.

Value

dbGetStatement() returns a string, the query used in either dbSendQuery() or dbSendStatement(). Attempting to query the statement for a result set cleared with dbClearResult() gives an error.

See Also

Other DBIResult generics: DBIResult-class, dbBind, dbClearResult, dbColumnInfo, dbFetch, dbGetInfo, dbGetRowCount, dbGetRowsAffected, dbHasCompleted, dbIsReadOnly, dbIsValid, dbQuoteIdentifier, dbQuoteLiteral, dbQuoteString, dbUnquoteIdentifier


OHDSI/DatabaseConnector documentation built on Oct. 28, 2018, 8:02 a.m.