Trait

doobie.util.meta

BasicMeta

Related Doc: package meta

Permalink

sealed trait BasicMeta[A] extends Meta[A]

Meta for "basic" JDBC types as defined by the specification. These include the basic numeric and text types with distinct get/setXXX methods and fixed mappings that ostensibly work for all compliant drivers. These types defined both "recommended" source types (jdbcSource here) and "supported" types (jdbcSourceSecondary) which drivers must not reject outright, although in many cases coercion failures are likely (reading an Int from a VarChar for instance) so these mappings should be viewed with suspicion.

Self Type
BasicMeta[A]
Source
meta.scala
Linear Supertypes
Meta[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BasicMeta
  2. Meta
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def fold[B](f: (BasicMeta[A]) ⇒ B, g: (AdvancedMeta[A]) ⇒ B): B

    Permalink

    Switch on the flavor of this Meta.

    Switch on the flavor of this Meta.

    Definition Classes
    Meta
  2. abstract def jdbcSource: NonEmptyList[JdbcType]

    Permalink

    Source JDBC types from which values of type A can be read.

    Source JDBC types from which values of type A can be read.

    Definition Classes
    Meta
  3. abstract val jdbcSourceSecondary: List[JdbcType]

    Permalink

    Supported but non-recommended source JDBC sources (see trait description above).

  4. abstract def jdbcTarget: NonEmptyList[JdbcType]

    Permalink

    Destination JDBC types to which values of type A can be written.

    Destination JDBC types to which values of type A can be written.

    Definition Classes
    Meta
  5. abstract def scalaType: String

    Permalink

    Name of the Scala type, for diagnostic purposes.

    Name of the Scala type, for diagnostic purposes. Smart constructors require a TypeTag to guarantee this value is correct.

    Definition Classes
    Meta
  6. abstract val set: (Int, A) ⇒ PreparedStatementIO[Unit]

    Permalink

    Constructor for a setXXX operation for a given A at a given index.

    Constructor for a setXXX operation for a given A at a given index.

    Definition Classes
    Meta
  7. abstract val unsafeGet: (ResultSet, Int) ⇒ A

    Permalink

    Unsafe direct JDBC get operation for optimized reads.

    Unsafe direct JDBC get operation for optimized reads.

    Definition Classes
    Meta
  8. abstract val update: (Int, A) ⇒ ResultSetIO[Unit]

    Permalink

    Constructor for an updateXXX operation for a given A at a given index.

    Constructor for an updateXXX operation for a given A at a given index.

    Definition Classes
    Meta
  9. abstract def xmap[B](f: (A) ⇒ B, g: (B) ⇒ A)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[B]): Meta[B]

    Permalink

    Invariant map (note that you must handle null; see nxmap).

    Invariant map (note that you must handle null; see nxmap). Meta is not quite an invariant functor because of the tag constraint, but I think it's worth the sacrifice because we get much better diagnostic information as a result.

    Definition Classes
    Meta

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def canReadFrom(jdbc: JdbcType): Boolean

    Permalink

    True if A can be read from a column or 'out' parameter with the specified JdbcType.

  6. def canWriteTo(jdbc: JdbcType): Boolean

    Permalink

    True if A can be written to a column or 'in' parameter with the specified JdbcType.

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. val get: (Int) ⇒ ResultSetIO[A]

    Permalink

    Constructor for a getXXX operation for type A at a given index.

    Constructor for a getXXX operation for type A at a given index.

    Definition Classes
    Meta
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def mightReadFrom(jdbc: JdbcType): Boolean

    Permalink

    True if A might be readable from a column or 'out' parameter with the specified JdbcType, taking into account non-recommended source types specified in jdbcSourceSecondary.

  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def nxmap[B >: Null](f: (A) ⇒ B, g: (B) ⇒ A)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[B], ev: <:<[Null, A]): Meta[B]

    Permalink

    Invariant map with null handling, for A, B >: Null; the functions f and g will never be passed a null value.

    Invariant map with null handling, for A, B >: Null; the functions f and g will never be passed a null value.

    Definition Classes
    Meta
  20. val setNull: (Int) ⇒ PreparedStatementIO[Unit]

    Permalink

    Constructor for a setNull operation for the primary JDBC type, at a given index.

    Constructor for a setNull operation for the primary JDBC type, at a given index.

    Definition Classes
    BasicMetaMeta
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Meta[A]

Inherited from AnyRef

Inherited from Any

Ungrouped