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
- Alphabetic
- By Inheritance
- CreateTable
- Statement
- Serializable
- Serializable
- Product
- Equals
- Ddl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
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
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- val columns: List[Column]
-
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()
-
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()
-
def
render: String
Properly render statement with separator Use it instead
toDdl
on Statement objectsProperly render statement with separator Use it instead
toDdl
on Statement objects- Definition Classes
- Statement
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val tableAttributes: Set[TableAttribute]
- val tableConstraints: Set[TableConstraint]
- val tableName: String
-
def
toDdl: String
Output actual DDL as string
-
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()
-
val
warnings: List[String]
Aggregates all warnings from child elements
Aggregates all warnings from child elements
- Definition Classes
- CreateTable → Ddl
-
def
withTabs(spaces: Int, str: String): String
Append specified amount of
to the string to produce formatted DDLspaces
Append specified amount of
to the string to produce formatted DDLspaces
- spaces
amount of spaces
- str
string itself
- returns
string with spaces
- Definition Classes
- Ddl