@@ -63,6 +63,7 @@ pub struct SelectStatement {
63
63
64
64
/// List of distinct keywords that can be used in select statement
65
65
#[ derive( Debug , Clone , PartialEq ) ]
66
+ #[ non_exhaustive]
66
67
pub enum SelectDistinct {
67
68
All ,
68
69
Distinct ,
@@ -72,6 +73,7 @@ pub enum SelectDistinct {
72
73
73
74
/// Window type in [`SelectExpr`]
74
75
#[ derive( Debug , Clone , PartialEq ) ]
76
+ #[ non_exhaustive]
75
77
pub enum WindowSelectType {
76
78
/// Name in [`SelectStatement`]
77
79
Name ( DynIden ) ,
@@ -98,6 +100,7 @@ pub struct JoinExpr {
98
100
99
101
/// List of lock types that can be used in select statement
100
102
#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
103
+ #[ non_exhaustive]
101
104
pub enum LockType {
102
105
/// Exclusive lock
103
106
Update ,
@@ -109,6 +112,7 @@ pub enum LockType {
109
112
110
113
/// List of lock behavior can be used in select statement
111
114
#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
115
+ #[ non_exhaustive]
112
116
pub enum LockBehavior {
113
117
Nowait ,
114
118
SkipLocked ,
@@ -123,6 +127,7 @@ pub struct LockClause {
123
127
124
128
/// List of union types that can be used in union clause
125
129
#[ derive( Debug , Clone , Copy , PartialEq , Eq ) ]
130
+ #[ non_exhaustive]
126
131
pub enum UnionType {
127
132
Intersect ,
128
133
Distinct ,
0 commit comments