Object

doobie.free

sqloutput

Related Doc: package free

Permalink

object sqloutput

Algebra and free monad for primitive operations over a java.sql.SQLOutput. 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 the doobie.hi package.

SQLOutputIO is a free monad that must be run via an interpreter, most commonly via natural transformation of its underlying algebra SQLOutputOp to another monad via Free.runFC.

The library provides a natural transformation to Kleisli[M, SQLOutput, A] for any exception-trapping (Catchable) and effect-capturing (Capture) monad M. Such evidence is provided for Task, IO, and stdlib Future; and transK[M] is provided as syntax.

// An action to run
val a: SQLOutputIO[Foo] = ...

// A JDBC object
val s: SQLOutput = ...

// Unfolding into a Task
val ta: Task[A] = a.transK[Task].run(s)
Source
sqloutput.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By inheritance
Inherited
  1. sqloutput
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. type SQLOutputIO[A] = Free[[x]Coyoneda[SQLOutputOp, x], A]

    Permalink

    Free monad over a free functor of SQLOutputOp; abstractly, a computation that consumes a java.sql.SQLOutput and produces a value of type A.

  2. implicit class SQLOutputIOOps[A] extends AnyRef

    Permalink

    Syntax for SQLOutputIO.

  3. sealed trait SQLOutputOp[A] extends AnyRef

    Permalink

    Sum type of primitive operations over a java.sql.SQLOutput.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. implicit val CaptureSQLOutputIO: Capture[SQLOutputIO]

    Permalink

    Capture instance for SQLOutputIO.

  5. implicit val CatchableSQLOutputIO: Catchable[SQLOutputIO]

    Permalink

    Catchable instance for SQLOutputIO.

  6. implicit val MonadSQLOutputIO: Monad[SQLOutputIO]

    Permalink

    Monad instance for SQLOutputIO (can't be inferred).

  7. object SQLOutputOp

    Permalink

    Module of constructors for SQLOutputOp.

    Module of constructors for SQLOutputOp. These are rarely useful outside of the implementation; prefer the smart constructors provided by the sqloutput module.

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def attempt[A](a: SQLOutputIO[A]): SQLOutputIO[\/[Throwable, A]]

    Permalink

    Lift a SQLOutputIO[A] into an exception-capturing SQLOutputIO[Throwable \/ A].

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def delay[A](a: ⇒ A): SQLOutputIO[A]

    Permalink

    Non-strict unit for capturing effects.

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def interpK[M[_]](implicit arg0: Monad[M], arg1: Catchable[M], arg2: Capture[M]): ~>[SQLOutputOp, [γ]Kleisli[M, SQLOutput, γ]]

    Permalink

    Natural transformation from SQLOutputOp to Kleisli for the given M, consuming a java.sql.SQLOutput.

  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. def liftBlob[A](s: Blob, k: BlobIO[A]): SQLOutputIO[A]

    Permalink

  20. def liftCallableStatement[A](s: CallableStatement, k: CallableStatementIO[A]): SQLOutputIO[A]

    Permalink

  21. def liftClob[A](s: Clob, k: ClobIO[A]): SQLOutputIO[A]

    Permalink

  22. def liftConnection[A](s: Connection, k: ConnectionIO[A]): SQLOutputIO[A]

    Permalink

  23. def liftDatabaseMetaData[A](s: DatabaseMetaData, k: DatabaseMetaDataIO[A]): SQLOutputIO[A]

    Permalink

  24. def liftDriver[A](s: Driver, k: DriverIO[A]): SQLOutputIO[A]

    Permalink

  25. def liftNClob[A](s: NClob, k: NClobIO[A]): SQLOutputIO[A]

    Permalink

  26. def liftPreparedStatement[A](s: PreparedStatement, k: PreparedStatementIO[A]): SQLOutputIO[A]

    Permalink

  27. def liftRef[A](s: Ref, k: RefIO[A]): SQLOutputIO[A]

    Permalink

  28. def liftResultSet[A](s: ResultSet, k: ResultSetIO[A]): SQLOutputIO[A]

    Permalink

  29. def liftSQLData[A](s: SQLData, k: SQLDataIO[A]): SQLOutputIO[A]

    Permalink

  30. def liftSQLInput[A](s: SQLInput, k: SQLInputIO[A]): SQLOutputIO[A]

    Permalink

  31. def liftStatement[A](s: Statement, k: StatementIO[A]): SQLOutputIO[A]

    Permalink

  32. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  33. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  35. def raw[A](f: (SQLOutput) ⇒ A): SQLOutputIO[A]

    Permalink

    Backdoor for arbitrary computations on the underlying SQLOutput.

  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. def trans[M[_]](c: SQLOutput)(implicit arg0: Monad[M], arg1: Catchable[M], arg2: Capture[M]): ~>[SQLOutputIO, M]

    Permalink

    Natural transformation from SQLOutputIO to M, given a java.sql.SQLOutput.

  39. def transK[M[_]](implicit arg0: Monad[M], arg1: Catchable[M], arg2: Capture[M]): ~>[SQLOutputIO, [γ]Kleisli[M, SQLOutput, γ]]

    Permalink

    Natural transformation from SQLOutputIO to Kleisli for the given M, consuming a java.sql.SQLOutput.

  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def writeArray(a: Array): SQLOutputIO[Unit]

    Permalink

  44. def writeAsciiStream(a: InputStream): SQLOutputIO[Unit]

    Permalink

  45. def writeBigDecimal(a: BigDecimal): SQLOutputIO[Unit]

    Permalink

  46. def writeBinaryStream(a: InputStream): SQLOutputIO[Unit]

    Permalink

  47. def writeBlob(a: Blob): SQLOutputIO[Unit]

    Permalink

  48. def writeBoolean(a: Boolean): SQLOutputIO[Unit]

    Permalink

  49. def writeByte(a: Byte): SQLOutputIO[Unit]

    Permalink

  50. def writeBytes(a: Array[Byte]): SQLOutputIO[Unit]

    Permalink

  51. def writeCharacterStream(a: Reader): SQLOutputIO[Unit]

    Permalink

  52. def writeClob(a: Clob): SQLOutputIO[Unit]

    Permalink

  53. def writeDate(a: Date): SQLOutputIO[Unit]

    Permalink

  54. def writeDouble(a: Double): SQLOutputIO[Unit]

    Permalink

  55. def writeFloat(a: Float): SQLOutputIO[Unit]

    Permalink

  56. def writeInt(a: Int): SQLOutputIO[Unit]

    Permalink

  57. def writeLong(a: Long): SQLOutputIO[Unit]

    Permalink

  58. def writeNClob(a: NClob): SQLOutputIO[Unit]

    Permalink

  59. def writeNString(a: String): SQLOutputIO[Unit]

    Permalink

  60. def writeObject(a: SQLData): SQLOutputIO[Unit]

    Permalink

  61. def writeRef(a: Ref): SQLOutputIO[Unit]

    Permalink

  62. def writeRowId(a: RowId): SQLOutputIO[Unit]

    Permalink

  63. def writeSQLXML(a: SQLXML): SQLOutputIO[Unit]

    Permalink

  64. def writeShort(a: Short): SQLOutputIO[Unit]

    Permalink

  65. def writeString(a: String): SQLOutputIO[Unit]

    Permalink

  66. def writeStruct(a: Struct): SQLOutputIO[Unit]

    Permalink

  67. def writeTime(a: Time): SQLOutputIO[Unit]

    Permalink

  68. def writeTimestamp(a: Timestamp): SQLOutputIO[Unit]

    Permalink

  69. def writeURL(a: URL): SQLOutputIO[Unit]

    Permalink

Inherited from AnyRef

Inherited from Any

Algebra

Constructors (Lifting)

Constructors (Primitives)

Typeclass Instances

Ungrouped