-
Committer:
Jay Pipes
-
Date:
2009-10-06 01:38:40 UTC
-
mto:
(1234.1.1 push)
(1237.2.10 push)
-
mto:
This revision was merged to the branch mainline in
revision
1166.
-
Revision ID:
jpipes@serialcoder-20091006013840-fao00xvp6hx73ekt
Based on IRC discussions with Brian, this patch reworks the Statement
message to SQL transformation code by having multi-key Insert, Update, and
Delete statements generate multiple SQL strings. The transformStatementToSql()
method now accepts a reference to a vector of strings, and when it finds a
Statement message which should be converted to multiple SQL strings, it
appends a transaction start and commit/rollback around the SQL strings which
would compose an atomic unit of change.
See the transaction_writer.cc and transaction_reader.cc program updates for
example code of how the new library interface works.