diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-12 20:28:23 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-02-12 20:28:23 +0000 |
commit | ce47a4d46cc5750d5d2f7429f7c1f56731054e97 (patch) | |
tree | f7f0d4a6427c1af095e6d0c7e8b03f3c18262b34 /lib/sqlalchemy/ext/serializer.py | |
parent | e048743d4977fd0a19b12a8a68208df29af850a8 (diff) | |
download | sqlalchemy-ce47a4d46cc5750d5d2f7429f7c1f56731054e97.tar.gz |
formatting
Diffstat (limited to 'lib/sqlalchemy/ext/serializer.py')
-rw-r--r-- | lib/sqlalchemy/ext/serializer.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/sqlalchemy/ext/serializer.py b/lib/sqlalchemy/ext/serializer.py index d40ccc9c6..354f28c59 100644 --- a/lib/sqlalchemy/ext/serializer.py +++ b/lib/sqlalchemy/ext/serializer.py @@ -33,13 +33,14 @@ The serializer module is only appropriate for query structures. It is not needed for: * instances of user-defined classes. These contain no references to engines, -sessions or expression constructs in the typical case and can be serialized directly. + sessions or expression constructs in the typical case and can be serialized directly. + * Table metadata that is to be loaded entirely from the serialized structure (i.e. is -not already declared in the application). Regular pickle.loads()/dumps() can -be used to fully dump any ``MetaData`` object, typically one which was reflected -from an existing database at some previous point in time. The serializer module -is specifically for the opposite case, where the Table metadata is already present - in memory. + not already declared in the application). Regular pickle.loads()/dumps() can + be used to fully dump any ``MetaData`` object, typically one which was reflected + from an existing database at some previous point in time. The serializer module + is specifically for the opposite case, where the Table metadata is already present + in memory. """ @@ -151,4 +152,4 @@ def loads(data, metadata=None, scoped_session=None, engine=None): unpickler = Deserializer(buf, metadata, scoped_session, engine) return unpickler.load() -
\ No newline at end of file + |