Aims: - Good performance for multi-row binding if supported by the driver - Seamless fallback support possible if the driver doesn't support binding - **No new methods, so that it works with DBI 0.5** Means: - [x] `dbBind()` accepts multi-row input - Query via `dbSendQuery()` - Need to call `dbFetch()` - `dbFetch()` always returns a data frame - Optional group ID in first column - [ ] `group.column` argument: name, `NULL` or `logical(1)`, default: `NULL` - How to fetch a single group, and then advance to the next? - [ ] `all.groups` argument: logical, default `TRUE` - How to return row counts for each parameter set? - [ ] `all.groups` argument to `dbGetRowCount()`: logical, default `TRUE` - [x] Statement via `dbSendStatement()` - [ ] Executed immediately upon `dbBind()` - [x] `dbFetch()` is a no-op, returns NULL (for the fallback) - [ ] Rows affected are accumulated - [ ] `dbGetRowsAffected()` returns single value - How to return rows affected for each parameter set? - [ ] `all.groups` argument to `dbGetRowsAffected()`: logical, default `TRUE` - [ ] Shortcuts via `params` argument to `dbSendQuery()` and `dbSendStatement()`
Aims:
Means:
dbBind()accepts multi-row inputdbSendQuery()dbFetch()dbFetch()always returns a data framegroup.columnargument: name,NULLorlogical(1), default:NULLall.groupsargument: logical, defaultTRUEall.groupsargument todbGetRowCount(): logical, defaultTRUEdbSendStatement()dbBind()dbFetch()is a no-op, returns NULL (for the fallback)dbGetRowsAffected()returns single valueall.groupsargument todbGetRowsAffected(): logical, defaultTRUEparamsargument todbSendQuery()anddbSendStatement()