dbClearResult {DBI} | R Documentation |
Frees all resources (local and remote) associated with a result set. In some cases (e.g., very large result sets) this can be a critical step to avoid exhausting resources (memory, file descriptors, etc.)
dbClearResult(res, ...)
res |
An object inheriting from |
... |
Other arguments passed on to methods. |
a logical indicating whether clearing the result set was successful or not.
Other DBIResult generics: DBIResult-class
,
SQL
, dbBind
,
dbColumnInfo
, dbFetch
,
dbGetInfo
, dbGetRowCount
,
dbGetRowsAffected
,
dbGetStatement
,
dbHasCompleted
, dbIsValid
con <- dbConnect(RSQLite::SQLite(), ":memory:") rs <- dbSendQuery(con, "SELECT 1") print(dbFetch(rs)) dbClearResult(rs) dbDisconnect(con)