[CDBI] Addition of store method

Michael G Schwern schwern at gmail.com
Thu Feb 15 15:19:59 GMT 2007


David Steinbrunner wrote:
> Hello all,
> 
> Mr. Schwern's recent warning/threat has put an end to my procrastination on
> posting about feature request.
> 
> Toward the end of last year I found myself needing a method to insert or
> update a record depending on if that record already existed.  I thought I
> had seen such a method called store in other systems such as Class::DBI so I
> searched around trying to find if someone had talked about this type of
> thing for Class::DBI before.

Sounds like MySQL's "INSERT ... ON DUPLICATE KEY UPDATE"



More information about the ClassDBI mailing list