Custom database functions

Tests usually run (locally) on sqlite, not on postgres. How do you imagine this in an environment without Katello?