Skip to content

Dynamically created tables are "Classical" SQLAlchemy style unmapped #22

Open
@gracecodes144

Description

@gracecodes144

See reference on SQLAlchemy mapping styles here. I made the switch from constructing class contents dictionaries and then using type to create the class (in "Declarative" style) to creating a "Classical" model class and building it up modularly a while ago, without realizing the difference. There is no problem with this, but I believe it might be confusing for beginning SQLAlchemy users, and would be easy to use the mapping API to create mapped model classes dynamically from the classical ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions