object MigrationGenerator
Module containing all logic to generate DDL files with information required to migration from one version of Schema to another
- Alphabetic
- By Inheritance
- MigrationGenerator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- val EmptyAdded: CommentBlock
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
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
-
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
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
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
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
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()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
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()