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"