equal
deleted
inserted
replaced
211 and the source implementor may use this method if necessary |
211 and the source implementor may use this method if necessary |
212 """ |
212 """ |
213 cu = session.pool[self.uri] |
213 cu = session.pool[self.uri] |
214 if attrs is None: |
214 if attrs is None: |
215 attrs = self.sqladapter.preprocess_entity(entity) |
215 attrs = self.sqladapter.preprocess_entity(entity) |
216 sql = self.sqladapter.sqlgen.update(SQL_PREFIX + str(entity.e_schema), attrs, ['eid']) |
216 sql = self.sqladapter.sqlgen.update(SQL_PREFIX + str(entity.e_schema), attrs, |
|
217 [SQL_PREFIX + 'eid']) |
217 cu.execute(sql, attrs) |
218 cu.execute(sql, attrs) |
218 |
219 |
219 def update_entity(self, session, entity): |
220 def update_entity(self, session, entity): |
220 """update an entity in the source""" |
221 """update an entity in the source""" |
221 raise NotImplementedError() |
222 raise NotImplementedError() |