re: You Can Do it in SQL, Stop Writing Extra Code for it VIEW POST

VIEW FULL DISCUSSION
 

To everyone here claiming that SQL is hard to test and troubleshoot: All SQL statements return a result-set. By using SQL Views, Functions and Stored Procedures you can test SQL code as you would test any other API call your code makes. Seriously, it's not an issue.

 

Agreed. A SQL statement is just code. It has an intended purpose and an expected result. That's pretty much what unit testing is designed to work with, no?

code of conduct - report abuse