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
Think about listing temporary tables #12
Comments
Handled as part of r-dbi/DBItest#159. |
@jimhester @edgararuiz: Maybe it's more useful to return a third column |
There are unfortunately many more table types ODBC data sources can use than table, view and temporary
https://docs.microsoft.com/en-us/sql/odbc/reference/syntax/sqltables-function |
Then it would be the backend's job to interpret its own values for the table type and fit it into the categories we provide.? |
That's always a challenge to design, because if we do that @krlmlr , we would need a "catch-all" category for those categories we don't explicitly catalog. I'm thinking of those database types that may have their own, very unique, table designations. This is a long way to say, that if we do, we'll need an "Other" category. |
So maybe |
Yeah that seems reasonable to me |
|
Only MySQL/MariaDB seems to support dropping temporary tables via |
… (default: `FALSE`) (r-dbi/DBI#141). Kirill Müller (43): fledge: Bump version to 2.1.0.9000 ignore safer tic export dbIsReadOnly() bump Revert "export dbIsReadOnly()" Deploy from Travis build 1509 [ci skip] Deploy from Travis build 1510 [ci skip] Deploy from Travis build 1511 [ci skip] Deploy from Travis build 1514 [ci skip] Deploy from Travis build 1515 [ci skip] Deploy from Travis build 1516 [ci skip] Deploy from Travis build 1530 [ci skip] Deploy from Travis build 1531 [ci skip] Deploy from Travis build 1533 [ci skip] install DBI and DBItest from GitHub reexport dbIsReadOnly() and dbCanConnect() implement format() implement dbRemoveTable(fail_if_missing = FALSE) document Deploy from Travis build 1539 [ci skip] use dbCreateTable() and dbAppendTable() Deploy from Travis build 1542 [ci skip] support bigint argument to dbConnect() Deploy from Travis build 1543 [ci skip] - Data frames resulting from a query always have unique non-empty column names (r-dbi/DBItest#137). collate - Support `temporary` argument in `dbRemoveTable()` (default: `FALSE`) (r-dbi/DBI#141). Deploy from Travis build 1546 [ci skip] reexport Id() oops fledge: Bump version to 2.1.0.9001 up drake-based revdep test bioc but only one level deep add revdep results remove remotes, bump dependency fledge: Bump version to 2.1.1 up CRAN comments reexport Id() Deploy from Travis build 1565 [ci skip] NEWS Deploy from Travis build 1566 [ci skip] Deploy from Travis build 1567 [ci skip]
This was difficult for Redshift. Need to revisit. |
Perhaps connections should keep track of temporary tables? Easier to do with a rewrite. |
We can register the temporary tables created through "official" means; it's not perfect but can help for databases that make it hard to enumerate temporary tables. |
temporary
argument, like withdbCreateTable()
. DefaultNA
lists everything,TRUE
orFALSE
lists only temporary or not.r-dbi/RSQLite@8f49651b12bbd0
dbListTables()
dbExistsTable()
dbRemoveTable()
The text was updated successfully, but these errors were encountered: