Skip to content

Is marshmallow compatible with SQLAlchemy imperative (aka classical) mapping ? #411

Open
@evoludigit

Description

@evoludigit

Hello,

I am building my first api, from a quite complex model (45+ domain objects) - and I would to know if marshmallow could fit my need as I have not found the answer elsewhere.

I use SQL Alchemy with an imperative mapping style: domain objects are defined in domain/model.py while tables are defined in adapters/orm.py.

Each domain object class is then explicitly mapped to its corresponding table.

All the examples I have seen use SQLAlchemy declarative mapping.

Is it possible to use marshmallow, especially the SQLAlchemyAutoSchema, with SQLAlchemy imperative mapping ?

thanks a lot for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions