{"id":15289134,"url":"https://github.com/horothesun/db-logic-testing-poc","last_synced_at":"2025-08-10T11:14:22.891Z","repository":{"id":242208376,"uuid":"808930674","full_name":"horothesun/db-logic-testing-poc","owner":"horothesun","description":"Proof of concept on how to test some logic defined in your DB.","archived":false,"fork":false,"pushed_at":"2025-07-23T22:50:55.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-24T01:34:44.396Z","etag":null,"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"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/horothesun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-06-01T07:33:56.000Z","updated_at":"2025-07-23T22:50:58.000Z","dependencies_parsed_at":"2024-06-14T23:48:50.602Z","dependency_job_id":"ea75a41e-373a-468e-b28d-c7fe4b8e7f8d","html_url":"https://github.com/horothesun/db-logic-testing-poc","commit_stats":{"total_commits":26,"total_committers":3,"mean_commits":8.666666666666666,"dds":0.6538461538461539,"last_synced_commit":"24cec92f019057a93e71690624b9a6ffd44b40d8"},"previous_names":["horothesun/db-logic-testing-poc"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/horothesun/db-logic-testing-poc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2Fdb-logic-testing-poc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2Fdb-logic-testing-poc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2Fdb-logic-testing-poc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2Fdb-logic-testing-poc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/horothesun","download_url":"https://codeload.github.com/horothesun/db-logic-testing-poc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horothesun%2Fdb-logic-testing-poc/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269713884,"owners_count":24463244,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["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"],"created_at":"2024-09-30T15:59:21.534Z","updated_at":"2025-08-10T11:14:22.863Z","avatar_url":"https://github.com/horothesun.png","language":"Shell","readme":"# DB logic testing PoC\n\n[![CI](https://github.com/horothesun/db-logic-testing-poc/actions/workflows/ci.yml/badge.svg)](https://github.com/horothesun/db-logic-testing-poc/actions/workflows/ci.yml)\n[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg?style=flat-square)](https://renovatebot.com)\n[![Mergify enabled](https://img.shields.io/badge/Mergify-enabled-success.svg?style=flat-square\u0026logo=data:image/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OddT02Bs4ZGoSfCS/7JP6Th7yUmQxO3cQgFvlJ2UJkbiiu9ypuRKNaR+ez/6MQ2dfrdgryMhGoGxjhbYhKsgbwhXc13l55gczLHDLcLHGpeCmF7tz7INUVNPb/vJZPiEDoIO/vWKvnYV+CSXNT0YDXRhY6qKvQN0HRCISG3NJPs9AItrfs4zTXCPb5eR5JpZbg2FuBzbYJ+37881z0LmTUCaekpGM6n+f/AiQDwkIqcbgQAAAAAElFTkSuQmCC)](https://mergify.com)\n[![Scala](https://img.shields.io/badge/Scala-3-%23DC322F?style=flat\u0026labelColor=%23383838\u0026logo=Scala\u0026logoColor=%23DC322F\u0026logoWidth=12\u0026cacheSeconds=3600)](https://www.scala-lang.org/)\n\nProof of concept on how to test some logic defined in your DB (e.g. `pure_db_logic(a int)`).\n\nIn order to demonstrate the integration with a DB via JDBC, the most external script (`scripts/integration_tests.sh`)\nspins up a dockerized Postgres DB instance, initializes it with the function defined in `schema.sql` and\nruns the test by connecting to the dockerized DB and checking the `SELECT pure_db_logic(123)` result.\n\n## Setup\n\nScala-CLI - IntelliJ IDEA setup: [guide](https://scala-cli.virtuslab.org/docs/cookbooks/ide/intellij/).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorothesun%2Fdb-logic-testing-poc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhorothesun%2Fdb-logic-testing-poc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhorothesun%2Fdb-logic-testing-poc/lists"}