Skip to content

MetaData.reflect() should be able to reflect views, too #1936

Closed
@sqlalchemy-bot

Description

@sqlalchemy-bot
Collaborator

Migrated issue, originally created by Anonymous

This thread here died:

http://groups.google.com/group/sqlalchemy/browse_thread/thread/ed5d7f14354e0cf7/f5fc5317f9a9669b

In summary, a three line patch was provided against 0.5.7 which claims to enable this behaviour. Can this be added?

1870c1870
< conn = None

        conn = bind.engine.contextual_connect() 

1879a1880,1881

    available.update(bind.engine.dialect.get_view_names(conn, 
                                                        schema=schema)) 

Activity

sqlalchemy-bot

sqlalchemy-bot commented on Oct 2, 2010

@sqlalchemy-bot
CollaboratorAuthor

Michael Bayer (@zzzeek) wrote:

The poster there never created the ticket in question, I suppose since apparently I didn't get to respond to that post. Anyway, that's not a complete patch, so I've taken the time to create a proper patch in 15442ed.

Note the patch is against 0.6 not 0.5.7, which the original poster claims is functionality already present (most likely by accident) in 0.5.

sqlalchemy-bot

sqlalchemy-bot commented on Oct 2, 2010

@sqlalchemy-bot
CollaboratorAuthor

Changes by Michael Bayer (@zzzeek):

  • set milestone to "0.6.5"
  • changed status to closed
added this to the 0.6.5 milestone on Nov 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurelow priorityschemathings related to the DDL related objects like Table, Column, CreateIndex, etc.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sqlalchemy-bot

        Issue actions

          MetaData.reflect() should be able to reflect views, too · Issue #1936 · sqlalchemy/sqlalchemy