Free monad over a free functor of SQLDataOp; abstractly, a computation that consumes
a java.sql.SQLData
and produces a value of type A
.
Syntax for SQLDataIO
.
Sum type of primitive operations over a java.sql.SQLData
.
Capture instance for SQLDataIO.
Catchable instance for SQLDataIO.
Module of constructors for SQLDataOp
.
Lift a SQLDataIO[A] into an exception-capturing SQLDataIO[Throwable \/ A].
Non-strict unit for capturing effects.
Natural transformation from SQLDataOp
to Kleisli
for the given M
, consuming a java.sql.SQLData
.
Lift a different type of program that has a default Kleisli interpreter.
Backdoor for arbitrary computations on the underlying SQLData.
Natural transformation from SQLDataIO
to M
, given a java.sql.SQLData
.
Natural transformation from SQLDataIO
to Kleisli
for the given M
, consuming a java.sql.SQLData
.
Algebra and free monad for primitive operations over a
java.sql.SQLData
. This is a low-level API that exposes lifecycle-managed JDBC objects directly and is intended mainly for library developers. End users will prefer a safer, higher-level API such as that provided in thedoobie.hi
package.SQLDataIO
is a free monad that must be run via an interpreter, most commonly via natural transformation of its underlying algebraSQLDataOp
to another monad viaFree#foldMap
.The library provides a natural transformation to
Kleisli[M, SQLData, A]
for any exception-trapping (Catchable
) and effect-capturing (Capture
) monadM
. Such evidence is provided forTask
,IO
, and stdlibFuture
; andtransK[M]
is provided as syntax.