case class AlterTable(tableName: String, statement: AlterTableStatement) extends Statement with Product with Serializable
Class holding data to alter some table with single AlterTableStatement
- See also
http://docs.aws.amazon.com/redshift/latest/dg/r_ALTER_TABLE.html ALTER TABLE table_name { ADD table_constraint | DROP CONSTRAINT constraint_name [ RESTRICT | CASCADE ] | OWNER TO new_owner | RENAME TO new_name | RENAME COLUMN column_name TO new_name | ADD [ COLUMN ] column_name column_type [ DEFAULT default_expr ] [ ENCODE encoding ] [ NOT NULL | NULL ] | DROP [ COLUMN ] column_name [ RESTRICT | CASCADE ] } where table_constraint is: [ CONSTRAINT constraint_name ] { UNIQUE ( column_name [, ... ] ) | PRIMARY KEY ( column_name [, ... ] ) | FOREIGN KEY (column_name [, ... ] ) REFERENCES reftable [ ( refcolumn ) ]}
- Alphabetic
- By Inheritance
- AlterTable
- Statement
- Serializable
- Serializable
- Product
- Equals
- Ddl
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AlterTable(tableName: String, statement: AlterTableStatement)
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()
-
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
- val statement: AlterTableStatement
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- 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
- 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