i need an idiomatic way to do an update without load...

ie :
                my      $a= MyApp::Relator->new( id_a=>1 , id_b=> 2 );
                        $a->save;
                my      $b= MyApp::RelatorCounter->new( id_a=> 1 );
                        $b->count_total( 'count_total + 1');
        
explanation :
                $a works normally
                $b is what i need.  i don't need to do a db load, i just want 
to  
generate the sql "UPDATE *table* SET count_total = count_total + 1  
WHERE id_a = 1 "
                i'm doing a db load now.  but i'd like to ditch it.  its not 
needed.

is there a way to hack this in rose ?


ps- work has been crazy lately. i owe john a ton of rose doc fixes &  
test cases for bugs.  they're still on the way!  just trying to dig  
out from under a pile of work.  being ceo+cto sucks, but I have a new  
operations guy starting next week!


// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|   CEO/Founder SyndiClick Networks
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|     Founder/CTO/CVO
|      FindMeOn.com - The cure for Multiple Web Personality Disorder
|      Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -
|      RoadSound.com - Tools For Bands, Stuff For Fans
|      Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  
- - - - - - - - - - - - - - - - - - -



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to