@@ -131,6 +131,7 @@ impl fmt::Debug for dyn Iden {
131
131
132
132
/// Column references
133
133
#[ derive( Debug , Clone , PartialEq ) ]
134
+ #[ non_exhaustive]
134
135
pub enum ColumnRef {
135
136
Column ( DynIden ) ,
136
137
TableColumn ( DynIden , DynIden ) ,
@@ -146,6 +147,7 @@ pub trait IntoColumnRef {
146
147
/// Table references
147
148
#[ allow( clippy:: large_enum_variant) ]
148
149
#[ derive( Debug , Clone , PartialEq ) ]
150
+ #[ non_exhaustive]
149
151
pub enum TableRef {
150
152
/// Table identifier without any schema / database prefix
151
153
Table ( DynIden ) ,
@@ -173,6 +175,7 @@ pub trait IntoTableRef {
173
175
174
176
/// Unary operators.
175
177
#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
178
+ #[ non_exhaustive]
176
179
pub enum UnOper {
177
180
Not ,
178
181
}
@@ -181,6 +184,7 @@ pub enum UnOper {
181
184
///
182
185
/// If something is not supported here, you can use [`BinOper::Custom`].
183
186
#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
187
+ #[ non_exhaustive]
184
188
pub enum BinOper {
185
189
And ,
186
190
Or ,
@@ -334,6 +338,7 @@ pub struct Asterisk;
334
338
///
335
339
/// If something is not supported here, you can use [`Keyword::Custom`].
336
340
#[ derive( Debug , Clone , PartialEq ) ]
341
+ #[ non_exhaustive]
337
342
pub enum Keyword {
338
343
Null ,
339
344
CurrentDate ,
@@ -355,6 +360,7 @@ pub trait IntoLikeExpr {
355
360
356
361
/// SubQuery operators
357
362
#[ derive( Debug , Copy , Clone , PartialEq ) ]
363
+ #[ non_exhaustive]
358
364
pub enum SubQueryOper {
359
365
Exists ,
360
366
Any ,
0 commit comments