Text

doobie.postgres.Text
See theText companion object
trait Text[A]

Typeclass for types that can be written as Postgres literal text, using the default DELIMETER and NULL values, for use with COPY. If you wish to implement an instance it's worth reading the documentation at the link below.

Attributes

See also
Companion
object
Source
Text.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Text[A]

Members list

Value members

Abstract methods

def unsafeEncode(a: A, sb: StringBuilder): Unit
Implicitly added by option

Construct an encoder for A that appends to the provided StringBuilder.

Construct an encoder for A that appends to the provided StringBuilder.

Value parameters

a

the value to encode

Attributes

Source
Text.scala
def unsafeEncode(a: A, sb: StringBuilder): Unit

Construct an encoder for A that appends to the provided StringBuilder.

Construct an encoder for A that appends to the provided StringBuilder.

Value parameters

a

the value to encode

Attributes

Source
Text.scala

Concrete methods

final def contramap[B](f: B => A): Text[B]
Implicitly added by option

Text is a contravariant functor.

Text is a contravariant functor.

Attributes

Source
Text.scala
final def contramap[B](f: B => A): Text[B]

Text is a contravariant functor.

Text is a contravariant functor.

Attributes

Source
Text.scala
final def encode(a: A): String
Implicitly added by option

Encode a.

Encode a.

Attributes

Source
Text.scala
final def encode(a: A): String

Encode a.

Encode a.

Attributes

Source
Text.scala
def product[B](fb: Text[B]): Text[(A, B)]
Implicitly added by option

Text is semigroupal.

Text is semigroupal.

Attributes

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

Text is semigroupal.

Text is semigroupal.

Attributes

Source
Text.scala
def unsafeArrayEncode(a: A, sb: StringBuilder): Unit
Implicitly added by option

Variant of unsafeEncode, called for array members which require more escaping. Same as unsafeEncode unless overridden.

Variant of unsafeEncode, called for array members which require more escaping. Same as unsafeEncode unless overridden.

Attributes

Source
Text.scala
def unsafeArrayEncode(a: A, sb: StringBuilder): Unit

Variant of unsafeEncode, called for array members which require more escaping. Same as unsafeEncode unless overridden.

Variant of unsafeEncode, called for array members which require more escaping. Same as unsafeEncode unless overridden.

Attributes

Source
Text.scala