You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be handy to have a version of to_struct() such that it would return the original names of the fields instead of the given name of the field.
The use case is this:
Take an SQLAlchemy model Car() which accepts **kwargs to assign properties, some of those properties are JSON objects. It would be nice to just Car(**jsoncar.to_base_name_struct()) to fully populate the db object. Looking through the implementation it looks like it might be rough to manhandle this in, it would be cleaner if
The text was updated successfully, but these errors were encountered:
It would be handy to have a version of to_struct() such that it would return the original names of the fields instead of the given name of the field.
The use case is this:
Take an SQLAlchemy model Car() which accepts **kwargs to assign properties, some of those properties are JSON objects. It would be nice to just Car(**jsoncar.to_base_name_struct()) to fully populate the db object. Looking through the implementation it looks like it might be rough to manhandle this in, it would be cleaner if
The text was updated successfully, but these errors were encountered: