Packages

object MigrationGenerator

Module containing all logic to generate DDL files with information required to migration from one version of Schema to another

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MigrationGenerator
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. val EmptyAdded: CommentBlock
  5. val EncodingsForbiddingAlter: List[CompressionEncodingValue]

    List of column encodings that don't support length extension

    List of column encodings that don't support length extension

    See also

    https://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_TABLE.html

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def buildAlterTableAdd(tableName: String, varcharSize: Int, pair: (SchemaPointer, Schema)): AlterTable

    Generate single ALTER TABLE statement to add a new property

    Generate single ALTER TABLE statement to add a new property

    tableName

    name of migrating table

    varcharSize

    default size for VARCHAR

    pair

    pair of property name and its Schema properties like length, maximum, etc

    returns

    DDL statement altering single column in table by adding new property

  8. def buildAlterTableMaxLength(tableName: String, varcharSize: Int, modified: Modified): Option[AlterTable]

    Generate single ALTER TABLE statement that increases the length of a varchar in-place

    Generate single ALTER TABLE statement that increases the length of a varchar in-place

    tableName

    name of migrating table

    varcharSize

    default size for VARCHAR

    modified

    field whose length gets increased

    returns

    DDL statement altering single column in table by increasing the sieadding new property

  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def generateMigration(migration: Migration, varcharSize: Int, tableSchema: Option[String]): DdlFile

    Generate full ready to be rendered DDL file containing all migration statements and additional data like previous version of table

    Generate full ready to be rendered DDL file containing all migration statements and additional data like previous version of table

    migration

    common JSON Schema migration object with path (from-to) and diff

    varcharSize

    size VARCHARs by default

    tableSchema

    DB schema for table (atomic by default)

    returns

    DDL file containing list of statements ready to be printed

  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def getHeader(tableName: String, oldSchemaUri: String): CommentBlock

    Generate comment block for for migration file with information about previous version of table

    Generate comment block for for migration file with information about previous version of table

    tableName

    name of migrating table

    oldSchemaUri

    Schema URI extracted from internal database store

    returns

    DDL statement with header

  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped