@@ -175,6 +175,8 @@ pub struct CreateTableBuilder {
175175 pub diststyle : Option < DistStyle > ,
176176 /// Redshift `DISTKEY` option.
177177 pub distkey : Option < Ident > ,
178+ /// Redshift `BACKUP` option.
179+ pub backup : Option < bool > ,
178180}
179181
180182impl CreateTableBuilder {
@@ -236,6 +238,7 @@ impl CreateTableBuilder {
236238 require_user : false ,
237239 diststyle : None ,
238240 distkey : None ,
241+ backup : None ,
239242 }
240243 }
241244 /// Set `OR REPLACE` for the CREATE TABLE statement.
@@ -521,6 +524,11 @@ impl CreateTableBuilder {
521524 self . distkey = distkey;
522525 self
523526 }
527+ /// Set the Redshift `BACKUP` option.
528+ pub fn backup ( mut self , backup : Option < bool > ) -> Self {
529+ self . backup = backup;
530+ self
531+ }
524532 /// Consume the builder and produce a `CreateTable`.
525533 pub fn build ( self ) -> CreateTable {
526534 CreateTable {
@@ -579,6 +587,7 @@ impl CreateTableBuilder {
579587 require_user : self . require_user ,
580588 diststyle : self . diststyle ,
581589 distkey : self . distkey ,
590+ backup : self . backup ,
582591 }
583592 }
584593}
@@ -656,6 +665,7 @@ impl From<CreateTable> for CreateTableBuilder {
656665 require_user : table. require_user ,
657666 diststyle : table. diststyle ,
658667 distkey : table. distkey ,
668+ backup : table. backup ,
659669 }
660670 }
661671}
0 commit comments