nee-core / dev.neeffect.nee.effects.tx / TxEffect / <init>

<init>

TxEffect(requiresNew: Boolean = false)

Transaction like effect.

Use for SQL/JDBC operations, but anything that works on some "resource - conection" can be implemented using TxProvider interface.

Parameters

DB - a resource, a connection

R - provider of resource (also must support update of connection state)