How to create and restore a backup from SqlAlchemy?

后端 未结 1 984
天涯浪人
天涯浪人 2021-02-01 06:05

I\'m writing a Pylons app, and am trying to create a simple backup system where every table is serialized and tarred up into a single file for an administrator to download, and

1条回答
  •  走了就别回头了
    2021-02-01 06:51

    You have to use Session.merge() method instead of Session.add() to put deserialized object back into the session.

    0 讨论(0)
提交回复
热议问题