Packages

case class GoodModel(entries: List[ShredModelEntry], schemaKey: SchemaKey, migrations: Migrations) extends ShredModel with Product with Serializable

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

Instance Constructors

  1. new GoodModel(entries: List[ShredModelEntry], schemaKey: SchemaKey, migrations: Migrations)

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. def allMigrations: List[NonBreaking]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final lazy val baseTableName: String
    Definition Classes
    ShredModel
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. final def columnNamesQuoted: List[String]
    Definition Classes
    ShredModel
  9. val entries: List[ShredModelEntry]
    Definition Classes
    GoodModelShredModel
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. def getMigrationsFor(key: SchemaKey): List[NonBreaking]
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def jsonToStrings(json: Json): List[String]
    Definition Classes
    ShredModel
  16. def merge(that: GoodModel): Either[RecoveryModel, GoodModel]

    Merge two good models, evaluating feasibility of this merge and updating migrations.

    Merge two good models, evaluating feasibility of this merge and updating migrations. Change vector could be column additions or varchar size expansion.

    that

    next schema model in the family, that would merge on top of this

    returns

    either Left ModelShred of the that schema tupled with non emtpy list of breaking changes that prevented the merge Right merged ModelShred of this with that schema tupled with list of non breaking changes required to make a perform a merge.

  17. def migrationSql(dbSchema: String, maybeLowerBound: Option[SchemaKey] = None, maybeUpperBound: Option[SchemaKey] = None): String

    Generates a sql snippet for migration between lower and upper bounds, if no bounds provided migrates from the first schema in family to the last

    Generates a sql snippet for migration between lower and upper bounds, if no bounds provided migrates from the first schema in family to the last

    dbSchema

    - name of the warehouse schema

    maybeLowerBound

    - lower bound for schema versions

    maybeUpperBound

    - upper bound for schema versions

    returns

    SQL script for upgrading schema

  18. val migrations: Migrations
  19. def migrationsInTransaction(maybeLowerBound: Option[SchemaKey] = None, maybeUpperBound: Option[SchemaKey] = None): List[ColumnAddition]
  20. def migrationsOutTransaction(maybeLowerBound: Option[SchemaKey] = None, maybeUpperBound: Option[SchemaKey] = None): List[VarcharExtension]
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. val schemaKey: SchemaKey
    Definition Classes
    GoodModelShredModel
  25. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  26. val tableName: String
    Definition Classes
    GoodModelShredModel
  27. final def toTableSql(dbSchema: String): String

    dbSchema

    - name of the warehouse schema

    Definition Classes
    ShredModel
  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( ... ) @native()

Inherited from ShredModel

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped