Repository navigation
Conversation
|
Hi, I also need the ability to query views. Could you merge it please? Thank you! |
There was a problem hiding this comment.
Does this include temporary tables?
|
This query - SELECT table_name FROM INFORMATION_SCHEMA.tables WHERE table_schema = ANY (current_schemas(false));.... only gets tables in the current For example, running that on a database I'm connecting to (Redshift), I get:
That's a real table, but it's only one of 33 real tables (it's the only table in the I'd suggest instead: SELECT table_name
FROM INFORMATION_SCHEMA.tables
WHERE table_schema not in ('information_schema', 'pg_catalog');This produces:
(for all 33) This should include views, temporary tables, and tables for all schema. However, it might break if there are tables/views/etc with duplicate names. |
|
I'd like to postpone this until schema support is available in DBI (r-dbi/DBI#24). |
|
Thanks! Implemented a similar version in cc7a835. |
Changes the query for listing tables as per #27.