• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

renatomassaro / FeebDB / 960d616cd95247b3d4a42e167b0f0026606ca5a9
81%
main: 87%

Build:
Build:
LAST BUILD BRANCH: sort-schema-list
DEFAULT BRANCH: main
Ran 23 Nov 2024 08:09PM UTC
Jobs 1
Files 58
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Nov 2024 08:09PM UTC coverage: 81.009% (+0.05%) from 80.964%
960d616cd95247b3d4a42e167b0f0026606ca5a9

Pull #14

github

renatomassaro
Add support for enqueuing requests when there are no available Repos

Each shard can have at most 1 write Repo and at most 2 read Repos.

The "single-write Repo" is a fundamental constraint of SQLite and will
never change. The "at most 2 read Repos" bit is arbitrary from my part
and can be tweaked in the future (for example, to allow a configurable
number of read Repos) -- it's fine to have multiple concurrent readers.

Previously, when the requested connection could not be fetched (because
they were already in use by another process), the Repo.Manager would
simply return a `:busy` atom.

Now, it will block the caller (at `Repo.Manager.fetch_connection/2`) and
return a response once a connection is made available.

Future improvements should be made to implement a timeout timer, so that
the caller does not block indefinitely.
Pull Request #14: Add support for enqueuing requests when there are no available Repos

25 of 31 new or added lines in 1 file covered. (80.65%)

31 existing lines in 2 files now uncovered.

1028 of 1269 relevant lines covered (81.01%)

47.92 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
83.95
-0.26% lib/feeb/db/repo/manager.ex

Uncovered Existing Lines

Lines Coverage ∆ File
6
83.95
-0.26% lib/feeb/db/repo/manager.ex
25
68.89
0.0% lib/feeb/db.ex
Jobs
ID Job ID Ran Files Coverage
1 960d616cd95247b3d4a42e167b0f0026606ca5a9.1 23 Nov 2024 08:09PM UTC 58
81.01
GitHub Action Run
Source Files on build 960d616cd95247b3d4a42e167b0f0026606ca5a9
  • Tree
  • List 58
  • Changed 25
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #14
  • PR Base - main (#795F6264...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc