From: Mike Bayer Date: Fri, 27 Jan 2006 00:34:38 +0000 (+0000) Subject: starting uow doc.... X-Git-Tag: rel_0_1_0~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a5409780dcaa198884026b0c3f6d1d3a4be7d80;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git starting uow doc.... --- diff --git a/doc/build/content/unitofwork.myt b/doc/build/content/unitofwork.myt index d96e41ee4a..69f1886f69 100644 --- a/doc/build/content/unitofwork.myt +++ b/doc/build/content/unitofwork.myt @@ -3,6 +3,17 @@ <&|doclib.myt:item, name="unitofwork", description="Unit of Work" &> <&|doclib.myt:item, name="overview", description="Overview" &> +

The concept behind Unit of Work is to track modifications to a field of objects, and then be able to commit those changes to the database in a single operation. Theres a lot of advantages to this, including that your application doesn't need to worry about individual save operations on objects, nor about the required order for those operations, nor about excessive repeated calls to save operations that would be more efficiently aggregated into one step. It also simplifies database transactions, providing a neat package with which to insert into the traditional database begin/commit phase. +

+

SQLAlchemy's unit of work includes these functions: +

<&|doclib.myt:item, name="begincommit", description="Begin/Commit" &>