Mysql Locker encapsulates MySQL locks and ensures they are always released when the object goes out of scope or an exception or error occurs.