trait ValueDecoder[T] extends AnyRef
Typeclass supporting type-safe decoding of values from PostgreSQL in text and binary formats
- Alphabetic
- By Inheritance
- ValueDecoder
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def decodeBinary(recv: String, bytes: ByteBuf, charset: Charset): Try[T]
Attempt to decode the given bytes with the Postgres data type represented by
recv
into TAttempt to decode the given bytes with the Postgres data type represented by
recv
into T- recv
The name of PostgreSQL's receive function for the text's data type
- bytes
The bytes to be decoded; must be at the correct position (beginning of bytes for this value)
- charset
The character set that is being used to communicate with Postgres
- returns
A Try encapsulating the decoding attempt
- abstract def decodeText(recv: String, text: String): Try[T]
Attempt to decode the given text with the Postgres data type represented by
recv
into TAttempt to decode the given text with the Postgres data type represented by
recv
into T- recv
The name of PostgreSQL's receive function for the text's data type
- text
The text to be decoded
- returns
A Try encapsulating the decoding attempt
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(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[U](fn: (T) => U): ValueDecoder[U]
Create a new ValueDecoder which is the composition of this decoder with the given function
Create a new ValueDecoder which is the composition of this decoder with the given function
- U
The type parameter of the new decoder
- fn
The function which will transform T
- returns
A new ValueDecoder decoding U
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])