Codegen TimestampWithTimeZone
fixup
This commit is contained in:
parent
5d1488f12d
commit
57201788ef
@ -43,7 +43,6 @@ impl Column {
|
|||||||
ColumnType::Uuid => "Uuid",
|
ColumnType::Uuid => "Uuid",
|
||||||
ColumnType::Binary(_) => "Vec<u8>",
|
ColumnType::Binary(_) => "Vec<u8>",
|
||||||
ColumnType::Boolean => "bool",
|
ColumnType::Boolean => "bool",
|
||||||
_ => unimplemented!(),
|
|
||||||
}
|
}
|
||||||
.parse()
|
.parse()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
@ -91,6 +90,7 @@ impl Column {
|
|||||||
},
|
},
|
||||||
ColumnType::DateTime(_) => quote! { ColumnType::DateTime.def() },
|
ColumnType::DateTime(_) => quote! { ColumnType::DateTime.def() },
|
||||||
ColumnType::Timestamp(_) => quote! { ColumnType::Timestamp.def() },
|
ColumnType::Timestamp(_) => quote! { ColumnType::Timestamp.def() },
|
||||||
|
ColumnType::TimestampWithTimeZone(_) => quote! { ColumnType::TimestampWithTimeZone.def() },
|
||||||
ColumnType::Time(_) => quote! { ColumnType::Time.def() },
|
ColumnType::Time(_) => quote! { ColumnType::Time.def() },
|
||||||
ColumnType::Date => quote! { ColumnType::Date.def() },
|
ColumnType::Date => quote! { ColumnType::Date.def() },
|
||||||
ColumnType::Binary(_) => quote! { ColumnType::Binary.def() },
|
ColumnType::Binary(_) => quote! { ColumnType::Binary.def() },
|
||||||
@ -106,7 +106,6 @@ impl Column {
|
|||||||
let s = s.to_string();
|
let s = s.to_string();
|
||||||
quote! { ColumnType::Custom(#s.to_owned()).def() }
|
quote! { ColumnType::Custom(#s.to_owned()).def() }
|
||||||
}
|
}
|
||||||
_ => unimplemented!(),
|
|
||||||
};
|
};
|
||||||
if !self.not_null {
|
if !self.not_null {
|
||||||
col_def.extend(quote! {
|
col_def.extend(quote! {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user