Skip to content

Commit

Permalink
don't copy autogenerated ReflectModels
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jan 12, 2025
1 parent efa6499 commit f457495
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions edgy/core/connection/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,7 @@ async def _connect_and_init(self, name: Union[str, None], database: "Database")
concrete_reflect_model = pattern_model.copy_edgy_model(
name=new_name, meta_info_class=MetaInfo
)
concrete_reflect_model.meta.no_copy = True
concrete_reflect_model.meta.tablename = table.name
concrete_reflect_model.__using_schema__ = table.schema
concrete_reflect_model.add_to_registry(self, database=database)
Expand Down

0 comments on commit f457495

Please sign in to comment.