com.snowplowanalytics.iglu.schemaddl.redshift
Properly render statement with separator
Use it instead toDdl
on Statement objects
Properly render statement with separator
Use it instead toDdl
on Statement objects
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
Output actual DDL as string
Aggregates all warnings from child elements
Aggregates all warnings from child elements
Append specified amount of
to the string to produce formatted DDL
spaces
Append specified amount of
to the string to produce formatted DDL
spaces
amount of spaces
string itself
string with spaces
Class holding data to alter some table with single AlterTableStatement
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 ) ]}