case class GoodModel(entries: List[ShredModelEntry], schemaKey: SchemaKey, migrations: Migrations) extends ShredModel with Product with Serializable
- Alphabetic
- By Inheritance
- GoodModel
- ShredModel
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new GoodModel(entries: List[ShredModelEntry], schemaKey: SchemaKey, migrations: Migrations)
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
- def allMigrations: List[NonBreaking]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
final
lazy val
baseTableName: String
- Definition Classes
- ShredModel
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
columnNamesQuoted: List[String]
- Definition Classes
- ShredModel
-
val
entries: List[ShredModelEntry]
- Definition Classes
- GoodModel → ShredModel
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getMigrationsFor(key: SchemaKey): List[NonBreaking]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
jsonToStrings(json: Json): List[String]
- Definition Classes
- ShredModel
-
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.
-
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
- val migrations: Migrations
- def migrationsInTransaction(maybeLowerBound: Option[SchemaKey] = None, maybeUpperBound: Option[SchemaKey] = None): List[ColumnAddition]
- def migrationsOutTransaction(maybeLowerBound: Option[SchemaKey] = None, maybeUpperBound: Option[SchemaKey] = None): List[VarcharExtension]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
schemaKey: SchemaKey
- Definition Classes
- GoodModel → ShredModel
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
val
tableName: String
- Definition Classes
- GoodModel → ShredModel
-
final
def
toTableSql(dbSchema: String): String
- dbSchema
- name of the warehouse schema
- Definition Classes
- ShredModel
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()