by thirtythree · 6y ago · 0 comments
There can be issues with package versions compiled to the db. It makes continuously integration harder. We do automated builds and testing in the application layer but we don't have anything in the db layer. It's harder to create a new environment (for a developer who does not have full db permissions). Business logic ends up in the stored procedure layer AND the application layer.
For instance:
1) You want to implement idempotency in your backend by using uniqueness constraints in your DB 2) That's important to test 3) That's not really tested unless you include a real DB
After including a real DB in our CI setup I will never move back.
There are so many problems that can occur in that communication to the database, it's invaluable to test it
Are you using a commercial database (SQL Server, Oracle, or similar?). With open source databases this is non issue as developers can run a complete instance locally with full permissions, completely isolated from prod/staging servers.
* Oracle Express: https://github.com/oracle/docker-images/tree/master/OracleDa...
* Sql Server: https://hub.docker.com/_/microsoft-mssql-server
* DB2 Community: https://hub.docker.com/r/ibmcom/db2