@@ -58,37 +58,33 @@ fn fill_option_of(result: &mut String, struct_propery: &StructProperty, sub_type
58
58
types_reader:: PropertyType :: Str => fill_option_of_sql_value ( result, struct_propery) ,
59
59
types_reader:: PropertyType :: DateTime => fill_option_of_sql_value ( result, struct_propery) ,
60
60
types_reader:: PropertyType :: VecOf ( sub_type) => {
61
- get_field_value_of_option_of_vec ( result, struct_propery, sub_type)
61
+ fill_option_of_vec ( result, struct_propery, sub_type)
62
62
}
63
63
_ => panic ! ( "{} is not supported" , struct_propery. ty. as_str( ) ) ,
64
64
}
65
65
}
66
66
67
- fn get_field_value_of_option_of_vec (
67
+ fn fill_option_of_vec (
68
68
result : & mut String ,
69
69
struct_propery : & StructProperty ,
70
70
sub_type : & PropertyType ,
71
71
) {
72
72
match sub_type {
73
- types_reader:: PropertyType :: U8 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
74
- types_reader:: PropertyType :: I8 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
75
- types_reader:: PropertyType :: U16 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
76
- types_reader:: PropertyType :: I16 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
77
- types_reader:: PropertyType :: U32 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
78
- types_reader:: PropertyType :: I32 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
79
- types_reader:: PropertyType :: U64 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
80
- types_reader:: PropertyType :: I64 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
81
- types_reader:: PropertyType :: F32 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
82
- types_reader:: PropertyType :: F64 => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
83
- types_reader:: PropertyType :: String => {
84
- fill_option_of_vec_of_sql_value ( result, struct_propery)
85
- }
86
- types_reader:: PropertyType :: Str => fill_option_of_vec_of_sql_value ( result, struct_propery) ,
87
- types_reader:: PropertyType :: DateTime => {
88
- fill_option_of_vec_of_sql_value ( result, struct_propery)
89
- }
73
+ types_reader:: PropertyType :: U8 => fill_option_of_vec_of_value ( result, struct_propery) ,
74
+ types_reader:: PropertyType :: I8 => fill_option_of_vec_of_value ( result, struct_propery) ,
75
+ types_reader:: PropertyType :: U16 => fill_option_of_vec_of_value ( result, struct_propery) ,
76
+ types_reader:: PropertyType :: I16 => fill_option_of_vec_of_value ( result, struct_propery) ,
77
+ types_reader:: PropertyType :: U32 => fill_option_of_vec_of_value ( result, struct_propery) ,
78
+ types_reader:: PropertyType :: I32 => fill_option_of_vec_of_value ( result, struct_propery) ,
79
+ types_reader:: PropertyType :: U64 => fill_option_of_vec_of_value ( result, struct_propery) ,
80
+ types_reader:: PropertyType :: I64 => fill_option_of_vec_of_value ( result, struct_propery) ,
81
+ types_reader:: PropertyType :: F32 => fill_option_of_vec_of_value ( result, struct_propery) ,
82
+ types_reader:: PropertyType :: F64 => fill_option_of_vec_of_value ( result, struct_propery) ,
83
+ types_reader:: PropertyType :: String => fill_option_of_vec_of_value ( result, struct_propery) ,
84
+ types_reader:: PropertyType :: Str => fill_option_of_vec_of_value ( result, struct_propery) ,
85
+ types_reader:: PropertyType :: DateTime => fill_option_of_vec_of_value ( result, struct_propery) ,
90
86
types_reader:: PropertyType :: Struct ( _) => {
91
- fill_option_of_vec_of_sql_value ( result, struct_propery)
87
+ fill_option_of_vec_of_value ( result, struct_propery)
92
88
}
93
89
_ => panic ! ( "Vec<{}> is not supported" , sub_type. as_str( ) ) ,
94
90
}
@@ -138,7 +134,7 @@ fn fill_option_of_sql_value(result: &mut String, struct_propery: &StructProperty
138
134
result. push_str ( "}" ) ;
139
135
}
140
136
141
- fn fill_option_of_vec_of_sql_value ( result : & mut String , struct_propery : & StructProperty ) {
137
+ fn fill_option_of_vec_of_value ( result : & mut String , struct_propery : & StructProperty ) {
142
138
result. push_str ( "my_postgres::SqlWhereValue::to_in_operator(\" " ) ;
143
139
result. push_str ( struct_propery. get_db_field_name ( ) ) ;
144
140
result. push_str ( "\" , &self." ) ;
0 commit comments