pelovett commented on code in PR #2467:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2467#discussion_r3895667552
##########
src/ast/table_constraints.rs:
##########
@@ -227,6 +244,38 @@ impl crate::ast::Spanned for CheckConstraint {
}
}
+#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
+#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
+#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
+/// An `ASSUME` constraint (`[ CONSTRAINT <name> ] ASSUME <expr>`).
+pub struct AssumeConstraint {
+ /// Optional constraint name.
+ pub name: Option<Ident>,
+ /// The boolean expression the ASSUME constraint enforces.
Review Comment:
Yes, updated with a more accurate comment
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]