阅读背景:

SQLAlchemy:提交后对象映射丢失了吗?

来源:互联网 

I got a simple problem in SQLAlchemy. I have one model in a table, lets call it Model1 here. I want to add a row in this table, and get the autoincremented key, so I can create another model with it, and use this key. This is not a flawed database design (1:1 relation etc). I simply need this key in another table, because the other table is being transferred to a remote host, and I need the matching keys so the servers will understand each other. There will be no further local reference between these 2 tables, and it's also not possible to create relations because of that.I got a simple problem in SQLAlchemy. I have on




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: