com.snowplowanalytics.iglu.schemaddl.redshift.generators

MigrationGenerator

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
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def buildAlterTable(tableName: String, varcharSize: Int)(pair: (String, Map[String, String])): AlterTable

    Generate single ALTER TABLE statement for some new property

    Generate single ALTER TABLE statement for some 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

  8. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def generateMigration(migration: Migration, varcharSize: Int = 4096, tableSchema: Option[String] = Some("atomic")): 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

  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. 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

  15. def hashCode(): Int

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

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped