On The 17th Day of the 2009th Year DrDaMour Wrote
So i was watching this video about tunneling PUT and DELETE requests inside of a POST request and they had this DAO that had this method called put, but the guy said it was really an "upsert" method. He described upsert as a function that would determine if the supplied data existed in the persistence layer (the DB in his case) and if so, it would use an UPDATE method, otherwise it would use an INSERT method.

I've written most my DAO's like that for a long time (as i'm sure many have), but i've always referred to it as an INSERT OR UPDATE command, and usually my method is called "Update", but from now on, i'm calling it Upsert!
generated in 0.7102 seconds