Re: [CDBI] Addition of store method

Michael G Schwern <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.class-dbi
Message-ID <[email protected]>
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"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.