Write

doobie.util.Write
See theWrite companion object
final class Write[A](val puts: List[(Put[_], NullabilityKnown)], val toList: A => List[Any], val unsafeSet: (PreparedStatement, Int, A) => Unit, val unsafeUpdate: (ResultSet, Int, A) => Unit)

Attributes

Companion
object
Source
write.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def contramap[B](f: B => A): Write[B]

Attributes

Source
write.scala
def product[B](fb: Write[B]): Write[(A, B)]

Attributes

Source
write.scala
def set(n: Int, a: A): PreparedStatementIO[Unit]

Attributes

Source
write.scala
def toFragment(a: A, sql: String): Fragment

Given a value of type A and an appropriately parameterized SQL string we can construct a Fragment. If sql is unspecified a comma-separated list of length placeholders will be used.

Given a value of type A and an appropriately parameterized SQL string we can construct a Fragment. If sql is unspecified a comma-separated list of length placeholders will be used.

Attributes

Source
write.scala
def update(n: Int, a: A): ResultSetIO[Unit]

Attributes

Source
write.scala

Concrete fields

lazy val length: Int

Attributes

Source
write.scala

Attributes

Source
write.scala
val toList: A => List[Any]

Attributes

Source
write.scala
val unsafeSet: (PreparedStatement, Int, A) => Unit

Attributes

Source
write.scala
val unsafeUpdate: (ResultSet, Int, A) => Unit

Attributes

Source
write.scala