diff --git a/src/entity/column.rs b/src/entity/column.rs index c3c06406..7b60f95a 100644 --- a/src/entity/column.rs +++ b/src/entity/column.rs @@ -389,6 +389,11 @@ impl ColumnDef { &self.col_type } + /// Get [Option] as reference + pub fn get_column_default(&self) -> Option<&SimpleExpr> { + self.default.as_ref() + } + /// Returns true if the column is nullable pub fn is_null(&self) -> bool { self.null