Packages

  • package root
    Definition Classes
    root
  • package doobie

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core.

    Top-level import, providing aliases for the most commonly used types and modules from doobie-free and doobie-core. A typical starting set of imports would be something like this.

    import cats.implicits._
    import doobie._, doobie.implicits._
    Definition Classes
    root
    See also

    The doobie microsite for much more information.

  • package util

    Collection of modules for typeclasses and other helpful bits.

    Collection of modules for typeclasses and other helpful bits.

    Definition Classes
    doobie
  • object meta

    Module defining the lowest level of column mapping.

    Module defining the lowest level of column mapping.

    Definition Classes
    util
  • AdvancedMeta
  • BasicMeta
  • LowPriorityImplicits
  • Meta
  • MetaInstances
t

doobie.util.meta

BasicMeta

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 jdbcSource: NonEmptyList[JdbcType]

    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
  2. abstract val jdbcSourceSecondary: List[JdbcType]

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

  3. abstract def jdbcTarget: NonEmptyList[JdbcType]

    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
  4. abstract def scalaType: String

    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

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def canReadFrom(jdbc: JdbcType): Boolean

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

  6. def canWriteTo(jdbc: JdbcType): Boolean

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

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def fold[B](f: (BasicMeta[A]) ⇒ B, g: (AdvancedMeta[A]) ⇒ B): B

    Switch on the flavor of this Meta.

    Switch on the flavor of this Meta.

    Definition Classes
    BasicMetaMeta
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def mightReadFrom(jdbc: JdbcType): Boolean

    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
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def unsafeGetNonNullable(rs: ResultSet, n: Int): A
    Definition Classes
    Meta
  22. final def unsafeGetNullable(rs: ResultSet, n: Int): Option[A]
    Definition Classes
    Meta
  23. final def unsafeSetNonNullable(ps: PreparedStatement, n: Int, a: A): Unit
    Definition Classes
    Meta
    Annotations
    @SuppressWarnings()
  24. final def unsafeSetNull(ps: PreparedStatement, n: Int): Unit
    Definition Classes
    Meta
  25. final def unsafeSetNullable(ps: PreparedStatement, n: Int, oa: Option[A]): Unit
    Definition Classes
    Meta
  26. final def unsafeUpdateNonNullable(rs: ResultSet, n: Int, a: A): Unit
    Definition Classes
    Meta
    Annotations
    @SuppressWarnings()
  27. final def unsafeUpdateNullable(rs: ResultSet, n: Int, oa: Option[A]): Unit
    Definition Classes
    Meta
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def xmap[B](f: (A) ⇒ B, g: (B) ⇒ A)(implicit ev: scala.reflect.api.JavaUniverse.TypeTag[B]): Meta[B]

    Invariant map.

    Invariant map.

    Definition Classes
    BasicMetaMeta
    Annotations
    @SuppressWarnings()

Deprecated Value Members

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

    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
    Annotations
    @deprecated
    Deprecated

    (Since version 0.4.2) Null is no longer observable here; just use xmap.

Inherited from Meta[A]

Inherited from AnyRef

Inherited from Any

Ungrouped