https://github.com/horothesun/db-logic-testing-poc
Proof of concept on how to test some logic defined in your DB.
https://github.com/horothesun/db-logic-testing-poc
cats-effect cats-effect-3 ci continuous-integration db docker doobie integration-testing scala scala-3 scala-cli scala3 stored-procedure stored-procedures testing typelevel
Last synced: 8 months ago
JSON representation
Proof of concept on how to test some logic defined in your DB.
- Host: GitHub
- URL: https://github.com/horothesun/db-logic-testing-poc
- Owner: horothesun
- Created: 2024-06-01T07:33:56.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-23T22:50:55.000Z (9 months ago)
- Last Synced: 2025-07-24T01:34:44.396Z (9 months ago)
- Topics: cats-effect, cats-effect-3, ci, continuous-integration, db, docker, doobie, integration-testing, scala, scala-3, scala-cli, scala3, stored-procedure, stored-procedures, testing, typelevel
- Language: Shell
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DB logic testing PoC
[](https://github.com/horothesun/db-logic-testing-poc/actions/workflows/ci.yml)
[](https://renovatebot.com)
[](https://mergify.com)
[](https://www.scala-lang.org/)
Proof of concept on how to test some logic defined in your DB (e.g. `pure_db_logic(a int)`).
In order to demonstrate the integration with a DB via JDBC, the most external script (`scripts/integration_tests.sh`)
spins up a dockerized Postgres DB instance, initializes it with the function defined in `schema.sql` and
runs the test by connecting to the dockerized DB and checking the `SELECT pure_db_logic(123)` result.
## Setup
Scala-CLI - IntelliJ IDEA setup: [guide](https://scala-cli.virtuslab.org/docs/cookbooks/ide/intellij/).