Class

quasar.db

Schema

Related Doc: package db

Permalink

final case class Schema[A](readVersion: ConnectionIO[slamdata.Predef.Option[A]], writeVersion: (A) ⇒ ConnectionIO[slamdata.Predef.Unit], updates: SortedMap[A, ConnectionIO[slamdata.Predef.Unit]])(implicit evidence$1: Atom[A], evidence$2: Order[A]) extends Product with Serializable

updates

a sequence of update operations which can be applied in sequence to bring the schema from any previous version up to the latest version, migrating existing data in the process.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Schema
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Schema(readVersion: ConnectionIO[slamdata.Predef.Option[A]], writeVersion: (A) ⇒ ConnectionIO[slamdata.Predef.Unit], updates: SortedMap[A, ConnectionIO[slamdata.Predef.Unit]])(implicit arg0: Atom[A], arg1: Order[A])

    Permalink

    updates

    a sequence of update operations which can be applied in sequence to bring the schema from any previous version up to the latest version, migrating existing data in the process.

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 clone(): AnyRef

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

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  10. def latestVersion: A

    Permalink

    Most recent known version, to which the schema will be updated.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  14. val readVersion: ConnectionIO[slamdata.Predef.Option[A]]

    Permalink
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def updateRequired: ConnectionIO[slamdata.Predef.Option[(slamdata.Predef.Option[A], A)]]

    Permalink

    Compare the schema version found in the DB with the latest version, and return a tuple showing the update to be applied, if needed.

  17. def updateToLatest: ConnectionIO[slamdata.Predef.Unit]

    Permalink
  18. val updates: SortedMap[A, ConnectionIO[slamdata.Predef.Unit]]

    Permalink

    a sequence of update operations which can be applied in sequence to bring the schema from any previous version up to the latest version, migrating existing data in the process.

  19. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. val writeVersion: (A) ⇒ ConnectionIO[slamdata.Predef.Unit]

    Permalink

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped