Context manager generator for retry block pattern and decorator.

Does it make sense to raise if the vendor isn't mysql? Or at least log a warning?