Skip to content

custom include_name() affect reflection, making it always include all tables all time #1269

Answered by wasdee
wasdee asked this question in Usage Questions
Discussion options

You must be logged in to vote

workaround

for my case

from geoalchemy2 import alembic_helpers

def include_object(object, name, type_, reflected, compare_to):
    if type_ == "table" and object.schema != "public":
        return False

    return alembic_helpers.include_object(object, name, type_, reflected, compare_to)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@zzzeek
Comment options

Answer selected by zzzeek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires triage New issue that requires categorization
2 participants
Converted from issue

This discussion was converted from issue #1268 on July 08, 2023 17:14.