3 ms·
I have an impression that many developers actively avoid stored procedures, trigger or any 'complex' database features because they don't fit well into a typica
by citrin_ru 6y ago
I have an impression that many developers actively avoid stored procedures, trigger or any 'complex' database features because they don't fit well into a typical CI/CD pipeline which deals only with application code.
It is quite possible to test stored procedures, it's just requires some additional work/infrastructure.
- fmajid 6y agoIt's mostly a familiarity and education problem, as well as the fact MySQL didn't have good support for this. Developers are exposed to procedural programming languages at university, but seldom to databases, let alone stored procedures. Unit tests can be written in SQL or PL/PGSQL and will typically run much faster than a CI pipeline.