typelevel / typelevel/skunk

Allow creating session pool in a different effect than the sessions

Open
#124 0 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.7k
Forks
175
Avg merge
5d 14h
Merged PRs (30d)
9

Description

Session.pooled currently takes one effect, but if you want to use e.g. tracing in Kleisli[F, Span[F], *], you'd need a Span[F] to even allocate the session pool (external resource). If possible, there should be a way to use two different effects, so that the outer resource can be allocated without a span.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the Session.pooled entry point and its surrounding resource and effect types. Work out an API that allocates the session pool without Span[F] while allowing sessions to use Kleisli[F, Span[F], *]; done means the issue's tracing use case is supported without requiring a span for pool allocation.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgres, scala
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.