Skip to content

Commit

Permalink
add docs
Browse files Browse the repository at this point in the history
Signed-off-by: Bugen Zhao <[email protected]>
  • Loading branch information
BugenZhao committed Jan 6, 2025
1 parent 0d6a067 commit dcaec6e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sqlparser/src/ast/ddl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -739,8 +739,13 @@ pub enum ColumnOption {
NotNull,
/// `DEFAULT <restricted-expr>`
DefaultValue(Expr),
/// Default value from previous bound `DefaultColumnDesc`. Used internally
/// and will not be parsed from SQL.
DefaultValuePersisted {
/// Protobuf encoded `DefaultColumnDesc`.
persisted: Box<[u8]>,
/// Optional AST for unparsing. If `None`, the default value will be
/// shown as `DEFAULT ...`, which is for demonstrating and not valid.
expr: Option<Expr>,
},
/// `{ PRIMARY KEY | UNIQUE }`
Expand Down

0 comments on commit dcaec6e

Please sign in to comment.