How to mock a DB in order to unit test?

Thanks a lot Peter that’s very helpful. Is there something similar that you know of for Go?