trait Decoder[A] extends AnyRef
Decoder of Postgres text-format data into Scala types.
- Self Type
- Decoder[A]
- Source
- Decoder.scala
- Alphabetic
- By Inheritance
- Decoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
emap[B](f: (A) ⇒ Either[String, B]): Decoder[B]
Map decoded results to a new type
B
or an error, yielding aDecoder[B]
. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
filter[B](f: (A) ⇒ Boolean): Decoder[A]
An equivalent decoder that filters results, failing with a generic error message when the filter condition is not met.
An equivalent decoder that filters results, failing with a generic error message when the filter condition is not met. For a custom error message use
emap
. -
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
gmap[B](implicit ev: Aux[B, A]): Decoder[B]
Adapt this
Decoder
from twiddle-list type A to isomorphic case-class typeB
. -
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length: Int
-
def
map[B](f: (A) ⇒ B): Decoder[B]
Map decoded results to a new type
B
, yielding aDecoder[B]
. -
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
opt: Decoder[Option[A]]
Lift this
Decoder
intoOption
. -
def
product[B](fb: Decoder[B]): Decoder[(A, B)]
Decoder
is semigroupal: a pair of decoders make a decoder for a pair. -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Decoder → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
~[B](fb: Decoder[B]): Decoder[~[A, B]]
Shorthand for
product
.