-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test multi-row binding #96
Comments
It would be amazing to make this work! |
Thanks. Stay tuned, the overdue SQLite release will have most of that. |
- Test multi-row binding for queries and statements (#96).
- Test multi-row binding for queries and statements (#96). - New `ellipsis` check that verifies that all implemented DBI methods contain `...` in their formals. This excludes `show()` and all methods defined in this or other packages. - Align description of binding with code.
- Use markdown in documentation. - Description of parametrized queries and statements (#88). - New hidden `DBIspec-wip` page for work-in-progress documentation. - Get rid of "Format" and "Usage" sections, and aliases, in the specs. - Not testing for presence of `max.connections` element in `dbGetInfo(Driver)` (r-dbi/DBI#56). - Test multi-row binding for queries and statements (#96). - New `ellipsis` check that verifies that all implemented DBI methods contain `...` in their formals. This excludes `show()` and all methods defined in this or other packages. - Refactored `bind_` tests to use the new `parameter_pattern` tweak (#95). - Rough draft of transaction tests (#36). - New `fetch_zero_rows` test, split from `fetch_premature_close`. - The "compliance" test tests that the backend package exports exactly one subclass of each DBI virtual class. - Document and enhance test for `dbDataType("DBIDriver", "ANY")` (#88). - Minor corrections for "bind" tests. - Isolate stress tests from main test suite (#92). - Refactor test specification in smaller modules, isolated from actual test execution (#81). This breaks the documentation of the tests, which will be substituted by a DBI specification in prose. - Align description of binding with code. - Refactor tests for `dbBind()`, test is run by `BindTester` class, and behavior is specified by members and by instances of the new `BindTesterExtra` class. - The `skip` argument to the `test_()` functions is again evaluated with `perl = TRUE` to support negative lookaheads (#33). - Use `dbSendStatement()` and `dbExecute()` where appropriate. - Avoid empty subsections in Rd documentation to satisfy `R CMD check` (#81).
The open issues seem a bit ambitious and perhaps unnecessary. Multi-row binding for queries won't be supported at the moment until a real use case arises (#123). Multi-row binding for statements is mostly used for inserting values into a table (at least for RSQLite). There seems to be no real need to retrieve the number of rows affected for each sub-statement. |
I agree it is difficult. My main use case was |
Oh, this should work already. |
Oh, really? That's great! Can you point me to an example if there is one? |
|
Cool, thanks! |
Aims:
Means:
dbBind()
accepts multi-row inputdbSendQuery()
dbFetch()
dbFetch()
always returns a data framegroup.column
argument: name,NULL
orlogical(1)
, default:NULL
all.groups
argument: logical, defaultTRUE
all.groups
argument todbGetRowCount()
: logical, defaultTRUE
dbSendStatement()
dbBind()
dbFetch()
is a no-op, returns NULL (for the fallback)dbGetRowsAffected()
returns single valueall.groups
argument todbGetRowsAffected()
: logical, defaultTRUE
params
argument todbSendQuery()
anddbSendStatement()
The text was updated successfully, but these errors were encountered: