You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Migrated issue, originally created by Michael Bayer (@zzzeek)
all the way back in 5320a47, SQLite gained the ability to reflect temp tables. But it seems like at least PG and MySQL don't at all. this is totally inconsistent.
Added :meth:.Inspector.get_temp_table_names and
:meth:.Inspector.get_temp_view_names; currently, only the
SQLite dialect supports these methods. The return of temporary
table and view names has been removed from SQLite's version
of :meth:.Inspector.get_table_names and
:meth:.Inspector.get_view_names; other database backends cannot
support this information (such as MySQL), and the scope of operation
is different in that the tables can be local to a session and
typically aren't supported in remote schemas.
fixes temporary table reflection #3204
Added support for the Oracle table option ON COMMIT. This is being
kept separate from Postgresql's ON COMMIT for now even though ON COMMIT
is in the SQL standard; the option is still very specific to temp tables
and we eventually would provide a more first class temporary table
feature.
Activity
sqlalchemy-bot commentedon Sep 17, 2014
Michael Bayer (@zzzeek) wrote:
well, MySQL has no feature whatsoever to do this: http://dev.mysql.com/doc/refman/5.5/en/tables-table.html http://stackoverflow.com/a/16296395/34549
sqlalchemy-bot commentedon Sep 17, 2014
Michael Bayer (@zzzeek) wrote:
so.... I'm going to support reflection of the table, but yank it out of the list for sqlite. its inconsistent
sqlalchemy-bot commentedon Sep 17, 2014
Michael Bayer (@zzzeek) wrote:
we'll move the list-based methods into new inspector methods for temp tables and temp views.
sqlalchemy-bot commentedon Sep 17, 2014
Michael Bayer (@zzzeek) wrote:
.Inspector.get_temp_table_names
and:meth:
.Inspector.get_temp_view_names
; currently, only theSQLite dialect supports these methods. The return of temporary
table and view names has been removed from SQLite's version
of :meth:
.Inspector.get_table_names
and:meth:
.Inspector.get_view_names
; other database backends cannotsupport this information (such as MySQL), and the scope of operation
is different in that the tables can be local to a session and
typically aren't supported in remote schemas.
fixes temporary table reflection #3204
→ cb23fa2
sqlalchemy-bot commentedon Sep 17, 2014
Changes by Michael Bayer (@zzzeek):
sqlalchemy-bot commentedon Sep 17, 2014
Michael Bayer (@zzzeek) wrote:
Oracle too.
sqlalchemy-bot commentedon Sep 17, 2014
Michael Bayer (@zzzeek) wrote:
kept separate from Postgresql's ON COMMIT for now even though ON COMMIT
is in the SQL standard; the option is still very specific to temp tables
and we eventually would provide a more first class temporary table
feature.
fix its get_table_names(), and add it to temporary table reflection #3204. fixes temporary table reflection #3204 again.
→ e3f07f7