Class | RR::Committers::DefaultCommitter |
In: |
lib/rubyrep/committers/committers.rb
|
Parent: | Object |
This committer does not do anything. This means that the default DBMS behaviour is used (for most DBMS: every DML statement (insert, update, delete) runs in it‘s own transaction.
connections | [RW] |
A hash holding the proxy connections
|
session | [RW] | The current Session object |
A new committer is created for each table sync.
* session: a Session object representing the current database session
Deletes the specified record in the specified database (either :left or :right). table is the name of the target table. values is a hash of column_name => value pairs. (Only the primary key values will be used and must be included in the hash.)
Is called after the last insert / update / delete query. success should be true if there were no problems, false otherwise.
Inserts the specified record in the specified database (either :left or :right). table is the name of the target table. values is a hash of column_name => value pairs.
Returns true if a new transaction was started since the last insert / update / delete.
Updates the specified record in the specified database (either :left or :right). table is the name of the target table. values is a hash of column_name => value pairs. # old_key is a column_name => value hash with the original primary key. If old_key is nil, then the primary key must be contained in values.