case class CreateTable(tableName: String, columns: List[Column], tableConstraints: Set[TableConstraint] = Set.empty[TableConstraint], tableAttributes: Set[TableAttribute] = Set.empty[TableAttribute]) extends Statement with Product with Serializable

Class holding all information about Redshift's table

tableName

table_name

columns

iterable of all columns DDLs

tableConstraints

set of table_constraints such as PRIMARY KEY

tableAttributes

set of table_attributes such as DISTSTYLE

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

Instance Constructors

  1. new CreateTable(tableName: String, columns: List[Column], tableConstraints: Set[TableConstraint] = Set.empty[TableConstraint], tableAttributes: Set[TableAttribute] = Set.empty[TableAttribute])

    tableName

    table_name

    columns

    iterable of all columns DDLs

    tableConstraints

    set of table_constraints such as PRIMARY KEY

    tableAttributes

    set of table_attributes such as DISTSTYLE

Value Members

  1. val columns: List[Column]
  2. def render: String

    Properly render statement with separator Use it instead toDdl on Statement objects

    Properly render statement with separator Use it instead toDdl on Statement objects

    Definition Classes
    Statement
  3. val separator: String

    Symbol used to separate statement from other.

    Symbol used to separate statement from other. Usually it is a semicolon, however special statements, like empty line or comment don't use separators Container class (not Statement) handles separators as well as newlines

    Definition Classes
    Statement
  4. val tableAttributes: Set[TableAttribute]
  5. val tableConstraints: Set[TableConstraint]
  6. val tableName: String
  7. def toDdl: String

    Output actual DDL as string

    Output actual DDL as string

    returns

    valid DDL

    Definition Classes
    CreateTableDdl
  8. val warnings: List[String]

    Aggregates all warnings from child elements

    Aggregates all warnings from child elements

    Definition Classes
    CreateTableDdl
  9. def withTabs(spaces: Int, str: String): String

    Append specified amount of spaces to the string to produce formatted DDL

    Append specified amount of spaces to the string to produce formatted DDL

    spaces

    amount of spaces

    str

    string itself

    returns

    string with spaces

    Definition Classes
    Ddl