Free monad over a free functor of PreparedStatementOp; abstractly, a computation that consumes
a java.sql.PreparedStatement
and produces a value of type A
.
Syntax for PreparedStatementIO
.
Sum type of primitive operations over a java.sql.PreparedStatement
.
Capture instance for PreparedStatementIO.
Catchable instance for PreparedStatementIO.
Module of constructors for PreparedStatementOp
.
Lift a PreparedStatementIO[A] into an exception-capturing PreparedStatementIO[Throwable \/ A].
Non-strict unit for capturing effects.
Natural transformation from PreparedStatementOp
to Kleisli
for the given M
, consuming a java.sql.PreparedStatement
.
Lift a different type of program that has a default Kleisli interpreter.
Backdoor for arbitrary computations on the underlying PreparedStatement.
Natural transformation from PreparedStatementIO
to M
, given a java.sql.PreparedStatement
.
Natural transformation from PreparedStatementIO
to Kleisli
for the given M
, consuming a java.sql.PreparedStatement
.
Algebra and free monad for primitive operations over a
java.sql.PreparedStatement
. 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.PreparedStatementIO
is a free monad that must be run via an interpreter, most commonly via natural transformation of its underlying algebraPreparedStatementOp
to another monad viaFree#foldMap
.The library provides a natural transformation to
Kleisli[M, PreparedStatement, 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.