Encoder of Postgres text-format data from Scala types.
Attributes
- Companion
- object
- Source
- Encoder.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
trait Codec[A]
- Self type
-
Encoder[A]
Members list
Value members
Abstract methods
Encode a value of type A
, yielding a list of Postgres text-formatted strings, lifted to Option
to handle NULL
values.
Encode a value of type A
, yielding a list of Postgres text-formatted strings, lifted to Option
to handle NULL
values. Encoding failures raise unrecoverable errors.
Attributes
- Source
- Encoder.scala
Given an initial parameter index, yield a hunk of sql containing placeholders, and a new index.
Given an initial parameter index, yield a hunk of sql containing placeholders, and a new index.
Attributes
- Source
- Encoder.scala
Types of encoded fields, in order.
Concrete methods
Contramap inputs from a new type B
, yielding an Encoder[B]
.
Derive an encoder for a list of size n
that expands to a comma-separated list of placeholders.
Derive an encoder for a list of size n
that expands to a comma-separated list of placeholders.
Attributes
- Source
- Encoder.scala
Derive an encoder for the specified list.
Derive an encoder for the specified list. This is equivalent to list(as.length)
but the resulting encoder can only encode the exact list that it was passed. Prefer this overload when possible because it lessens the possibility of attempting to encode a list of the wrong length.
Attributes
- Source
- Encoder.scala
Oids of types, or mismatches.
Attributes
- Source
- Encoder.scala
Encoder
is semigroupal: a pair of encoders make a encoder for a pair.
Encoder
is semigroupal: a pair of encoders make a encoder for a pair.
Attributes
- Source
- Encoder.scala
Returns a string representation of the object.
Returns a string representation of the object.
The default representation is platform dependent.
Attributes
- Returns
-
a string representation of the object.
- Definition Classes
-
Any
- Source
- Encoder.scala
Derive an equivalent encoder for a row type; i.e., its placeholders will be surrounded by parens.
Derive an equivalent encoder for a row type; i.e., its placeholders will be surrounded by parens.
Attributes
- Source
- Encoder.scala
Shorthand for product
.
Deprecated methods
Adapt this Encoder
from twiddle-list type A to isomorphic case-class type B
.
Adapt this Encoder
from twiddle-list type A to isomorphic case-class type B
.
Attributes
- Deprecated
- true
- Source
- Encoder.scala