update command
[dbsrgits/DBIx-Data-Store-old.git] / lib / DBIx / Data / Collection / Set.pm
index 4d90294..7e71b8e 100644 (file)
@@ -155,7 +155,7 @@ method remove ($old) {
 }
 
 method _remove_from_store ($old) {
-  $self->_store->new_delete_command($self->_deflate($old))->execute;
+  $self->_store->new_delete_command($self->_deflate($old))->execute
 }
 
 method _remove_from_caches ($old) {
@@ -164,4 +164,13 @@ method _remove_from_caches ($old) {
   $old
 }
 
+## update
+
+method _update_in_store ($obj) {
+  # this is currently a call command but we should think about it
+  # being a row command so that we can have RETURNING or other
+  # mechanisms handle things like set-on-update datetime values
+  $self->_store->new_update_command($self->_deflate($obj))->execute
+}
+
 1;