From 921f49b8b7c7bd79f5882dc0afe144f744db1a28 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 7 Sep 2005 04:22:36 +0000 Subject: [PATCH] --- TODO | 6 ------ lib/sqlalchemy/objectstore.py | 20 ++++++++++++++++++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/TODO b/TODO index 371f31c8b4..7ecb9f6176 100644 --- a/TODO +++ b/TODO @@ -3,8 +3,6 @@ TODO: table reflection, i.e. create tables with autoload = True -sequences/autoincrement support - mapper can take a row-processing/object instantiating function, without expensive construction lazy/eager loaders added to mapper via a list instaed of dictionary @@ -15,12 +13,8 @@ horizontal lazy/eager loaders for one object across tables - add it to existing this will add a lot to SmartProperty since it needs to support a list of properties that all trigger one lazy loader -saving ! - unit of work ? -identity map - more like fowlers - Oracle module diff --git a/lib/sqlalchemy/objectstore.py b/lib/sqlalchemy/objectstore.py index 44a29e071c..7bcf00fd8f 100644 --- a/lib/sqlalchemy/objectstore.py +++ b/lib/sqlalchemy/objectstore.py @@ -21,7 +21,7 @@ def get_id_key(ident, class_, table, selectable): return (class_, table, tuple(ident)) def get_instance_key(object, class_, table, selectable): return (class_, table, tuple([getattr(object, column.key, None) for column in selectable.primary_keys])) -def get_key(row, class_, table, selectable): +def get_row_key(row, class_, table, selectable): return (class_, table, tuple([row[column.label] for column in selectable.primary_keys])) identity_map = {} @@ -67,4 +67,20 @@ def has_key(key): return False class UnitOfWork: - pass \ No newline at end of file + def __init__(self): + pass + + def register_clean(self, obj): + pass + + def register_new(self, obj): + pass + + def register_dirty(self, obj): + pass + + def register_deleted(self, obj): + pass + + + \ No newline at end of file -- 2.47.2