@@ -33,6 +33,7 @@ use super::{value::escape_single_quote_string, ColumnDef};
3333#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
3434#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
3535/// A member of an ENUM type.
36+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
3637pub enum EnumMember {
3738 /// Just a name.
3839 Name ( String ) ,
@@ -46,6 +47,7 @@ pub enum EnumMember {
4647#[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
4748#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
4849#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
50+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
4951pub enum DataType {
5052 /// Table type in [PostgreSQL], e.g. CREATE FUNCTION RETURNS TABLE(...).
5153 ///
@@ -897,6 +899,7 @@ fn format_clickhouse_datetime_precision_and_timezone(
897899#[ derive( Debug , Clone , Copy , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
898900#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
899901#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
902+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
900903pub enum StructBracketKind {
901904 /// Example: `STRUCT(a INT, b STRING)`
902905 Parentheses ,
@@ -911,6 +914,7 @@ pub enum StructBracketKind {
911914#[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
912915#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
913916#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
917+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
914918pub enum TimezoneInfo {
915919 /// No information about time zone, e.g. TIMESTAMP
916920 None ,
@@ -958,6 +962,7 @@ impl fmt::Display for TimezoneInfo {
958962#[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
959963#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
960964#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
965+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
961966pub enum IntervalFields {
962967 /// `YEAR` field
963968 Year ,
@@ -1014,6 +1019,7 @@ impl fmt::Display for IntervalFields {
10141019#[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
10151020#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
10161021#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
1022+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
10171023pub enum ExactNumberInfo {
10181024 /// No additional information, e.g. `DECIMAL`.
10191025 None ,
@@ -1045,6 +1051,7 @@ impl fmt::Display for ExactNumberInfo {
10451051#[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
10461052#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
10471053#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
1054+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
10481055pub enum CharacterLength {
10491056 /// Integer length with optional unit (e.g. `CHAR(10)` or `VARCHAR(10 CHARACTERS)`).
10501057 IntegerLength {
@@ -1080,6 +1087,7 @@ impl fmt::Display for CharacterLength {
10801087#[ derive( Debug , Copy , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
10811088#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
10821089#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
1090+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
10831091pub enum CharLengthUnits {
10841092 /// CHARACTERS unit
10851093 Characters ,
@@ -1106,6 +1114,7 @@ impl fmt::Display for CharLengthUnits {
11061114/// Information about [binary length][1], including length and possibly unit.
11071115///
11081116/// [1]: https://jakewheat.github.io/sql-overview/sql-2016-foundation-grammar.html#binary-length
1117+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
11091118pub enum BinaryLength {
11101119 /// Integer length for binary types (e.g. `VARBINARY(100)`).
11111120 IntegerLength {
@@ -1137,6 +1146,7 @@ impl fmt::Display for BinaryLength {
11371146#[ derive( Debug , Clone , PartialEq , PartialOrd , Eq , Ord , Hash ) ]
11381147#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
11391148#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
1149+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
11401150pub enum ArrayElemTypeDef {
11411151 /// Use `ARRAY` style without an explicit element type.
11421152 None ,
@@ -1155,6 +1165,7 @@ pub enum ArrayElemTypeDef {
11551165#[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash , PartialOrd , Ord ) ]
11561166#[ cfg_attr( feature = "serde" , derive( Serialize , Deserialize ) ) ]
11571167#[ cfg_attr( feature = "visitor" , derive( Visit , VisitMut ) ) ]
1168+ #[ cfg_attr( feature = "arbitrary" , derive( arbitrary:: Arbitrary ) ) ]
11581169pub enum GeometricTypeKind {
11591170 /// Point geometry
11601171 Point ,
0 commit comments