Mike,

Thanks. I posted the same in github also. Posted the same because if there 
is any one knows how to solve this if they are also using 
marshmallow-sqlalchemy package .

Regards,
Shankar.

On Monday, 11 April 2016 19:45:38 UTC+5:30, Shankar Ganesh wrote:
>
> Hi,
>
> Is there a way to avoid inserting the data into session while using 
> Marshmallow - sqlalchemy
>
> sqlalchemy marshmallow avoid loading into session
>
> Ref: https://marshmallow-sqlalchemy.readthedocs.org/en/latest/
>
> Because we tried to manage the objects by ourself. Will add into the 
> session if required , but for validation I need to use load ()
>
> Please advice. Thanks for your help
>
> author = Author(name='Chuck Paluhniuk')book = Book(title='Fight Club', 
> author=author)session.add(author)session.add(book)session.commit()
> author_schema.dump(author).data# {'books': [123], 'id': 321, 'name': 'Chuck 
> Paluhniuk'}
> author_schema.load(dump_data, session=session).data# <Author(name='Chuck 
> Paluhniuk')>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to