Skip to content

Transactor lenses do not preserve Transactor type #2310

Description

@mwisnicki

This won't compile because resulting type is Transactor

def withIsolationLevel(xa: HikariTransactor, level: TransactionIsolation): HikariTransactor =
  Transactor.before.modify(xa, _ *> connection.setTransactionIsolation(level))

It would be helpful if transactor type was preserved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions