Skip to content

Commit 66cb893

Browse files
committed
add docs
Signed-off-by: Bugen Zhao <[email protected]>
1 parent 83268f0 commit 66cb893

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sqlparser/src/ast/ddl.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,8 +739,13 @@ pub enum ColumnOption {
739739
NotNull,
740740
/// `DEFAULT <restricted-expr>`
741741
DefaultValue(Expr),
742+
/// Default value from previous bound `DefaultColumnDesc`. Used internally
743+
/// and will not be parsed from SQL.
742744
DefaultValuePersisted {
745+
/// Protobuf encoded `DefaultColumnDesc`.
743746
persisted: Box<[u8]>,
747+
/// Optional AST for unparsing. If `None`, the default value will be
748+
/// shown as `DEFAULT ...`, which is for demonstrating and not valid.
744749
expr: Option<Expr>,
745750
},
746751
/// `{ PRIMARY KEY | UNIQUE }`

0 commit comments

Comments
 (0)