You must log in or register to comment.
Yes by all means, split your business logic from your infrastructure layer, but for the love of god don’t use sqlmock. It’s 2023, we have testcontainers and the ability to relatively simply - and reliably - host external dependencies locally. With a MySQL or Postgres instance there isn’t really an excuse anymore to not be testing the integration.