All Questions
Tagged with doobie functional-programming
5
questions
0
votes
1
answer
736
views
Conditional Doobie query with Option field
I have following
case class Request(name:Option[String], age: Option[Int], address: Option[List[String]])
And I want to construct a query like this the conditions should apply if and only if the ...
2
votes
1
answer
1k
views
Transactions in Doobie for Scala / Play Framework
I have a question regarding transactions in doobie.
I have looked over the documentation here and it looks like it can only handle one query at a time?
Is it possible to have something like this
sql'''...
0
votes
0
answers
456
views
Retrying Monix Task - why Task.defer is required here?
I recently spotted a case I can't fully understand while working with Monix Task:
There are two functions (in queue msg handler):
def handle(msg: RollbackMsg): Task[Unit] = {
logger.info(s"...
0
votes
2
answers
172
views
List to multiple anonymous/underscore parameters in for-comprehension
I'm kind of new to Scala/functional so I'm not yet able to use technical language.
I'm experiencing problems with a for-comprehension
val queries =
for {
_ <- createBanco
_ <- ...
14
votes
1
answer
1k
views
Running queries in parallel in Doobie
Is it possible to run multiple queries in parallel, using Doobie?
I have the following (pseudo)queries:
def prepareForQuery(input: String): ConnectionIO[Unit] = ???
val gettAllResults: ...