Skip to content

Http4s middleware - example with a resource being used by routes #947

Answered by armanbilge
adamjuhasz asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, ok, let's try something different. Try initializing your database like this:

db = Database[Kleisli[IO, Span[IO], *]](xa)

Then you will need to change xa to be a HikariTransactor[Kleisli[IO, Span[IO], *]].

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@adamjuhasz
Comment options

@armanbilge
Comment options

@adamjuhasz
Comment options

@armanbilge
Comment options

Answer selected by adamjuhasz
@adamjuhasz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #946 on January 18, 2024 20:46.