Skip to content
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

Develop a standard(ish?) set of DBI methods to run #7

Open
14 of 28 tasks
jonkeane opened this issue Oct 16, 2019 · 0 comments
Open
14 of 28 tasks

Develop a standard(ish?) set of DBI methods to run #7

jonkeane opened this issue Oct 16, 2019 · 0 comments

Comments

@jonkeane
Copy link
Collaborator

jonkeane commented Oct 16, 2019

If we match DBI's methods, we should be able to test each driver relatively simply. What's the minimal and appropriate set of DBI methods that we should cover to test and show compatibility with a new driver.

cf: https://cran.r-project.org/web/packages/DBI/vignettes/DBI-1.html

DBIDriver

These are probably mostly no-op

  • driverName()
  • dbListConnections(drv, ...)
  • dbGetInfo(dbObj, ...)
  • dbUnloadDriver(driverName)

DBIConnection

  • dbConnect(drv, ...)
  • dbDisconnect(conn, ...)
  • dbSendQuery(conn, statement, ...)
  • dbGetQuery(conn, statemnet, ...)
  • dbGetException(conn, ...) (deprecated Deprecate dbListResults() r-dbi/DBI#58)
  • dbGetInfo(dbObj, ...)
  • dbListResults(conn, ...) (deprecated Deprecate dbGetException r-dbi/DBI#51)
  • dbListTables(conn, ...)
  • dbReadTable(conn, name, ...)
  • dbWriteTable(conn, name, value, ...)
  • dbRemoveTable(conn, name, ...)
  • dbListFields(conn, name, ...)
  • dbCommit(conn, ...) (optional)
  • dbRollback(conn, ...) (optional)
  • dbCallProc(conn, storedProc, ...) (optional, deprecated)

DBIResult

  • fetch(res, n, ...)
  • dbClearResult(res, ...)
  • dbGetInfo(dbObj, ...)
  • dbColumnInfo(res, ...)
  • dbSetDataMappings(velds, ...) (optional)
  • dbGetStatement(res, ...) (optional)
  • dbGetRowsAffected(res, ...) (optional)
  • dbHasCompleted(res, ...) (optional)
  • dbGetRowCount(res, ...) (optional)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant