]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- doc edit
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 30 Sep 2006 03:10:21 +0000 (03:10 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 30 Sep 2006 03:10:21 +0000 (03:10 +0000)
- i have no idea what a SynonymProperty was supposed to be for

doc/build/content/dbengine.txt
lib/sqlalchemy/orm/mapper.py
lib/sqlalchemy/orm/query.py

index a68b94de582aff6e0449f0067ca9745a7d35fbda..fdde68fdae0edf9455336a19e26eaa98e45b2b3d 100644 (file)
@@ -106,7 +106,7 @@ Example of a manual invocation of `pool.QueuePool` (which is the pool instance u
     def getconn():
         return MySQLdb.connect(user='ed', dbname='mydb')
     
-    engine = create_engine('mysql', pool=pool.QueuePool(getconn, pool_size=20, max_overflow=40))
+    engine = create_engine('mysql://', pool=pool.QueuePool(getconn, pool_size=20, max_overflow=40))
 
 * pool_size=5 : the number of connections to keep open inside the connection pool.  This used with `QueuePool` as well as `SingletonThreadPool` as of 0.2.7.
 * max_overflow=10 : the number of connections to allow in "overflow", that is connections that can be opened above and beyond the initial five.  this is only used with `QueuePool`.
index 24225bd6d33a8d10bb12f2806b3a5b3e100e9c08..e7dff0f0ff41d1d0b24e8616d5181e057c04e2e9 100644 (file)
@@ -12,7 +12,7 @@ import query as querylib
 import session as sessionlib
 import weakref
 
-__all__ = ['Mapper', 'MapperExtension', 'class_mapper', 'object_mapper', 'SynonymProperty', 'EXT_PASS']
+__all__ = ['Mapper', 'MapperExtension', 'class_mapper', 'object_mapper', 'EXT_PASS']
 
 # a dictionary mapping classes to their primary mappers
 mapper_registry = weakref.WeakKeyDictionary()
@@ -1240,17 +1240,6 @@ class MapperProperty(object):
         at the class level.  otherwise we have to set attribute behavior on a per-instance level."""
         return self.inherits is None and self.parent._is_primary_mapper()
 
-class SynonymProperty(MapperProperty):
-    """a marker object used by query.select_by to allow a property name to refer to another.
-    
-    this object may be expanded in the future."""
-    def __init__(self, name):
-        self.name = name
-    def execute(self, session, instance, row, identitykey, imap, isnew):
-        pass
-    def copy(self):
-        return SynonymProperty(self.name)
-        
 class MapperOption(object):
     """describes a modification to a Mapper in the context of making a copy
     of it.  This is used to assist in the prototype pattern used by mapper.options()."""
index db497bc37f093aa0fc03c491472a7719d5e0c596..a317435e8a8a2691d260b4312a01566900ff344d 100644 (file)
@@ -122,8 +122,6 @@ class Query(object):
             seen.add(mapper_)
             if mapper_.props.has_key(key):
                 prop = mapper_.props[key]
-                if isinstance(prop, mapper.SynonymProperty):
-                    prop = mapper_.props[prop.name]
                 if isinstance(prop, properties.PropertyLoader):
                     keys.insert(0, prop.key)
                 return prop