Add Uuid to col_type for codegen
This commit is contained in:
parent
ef27c2bd57
commit
b205fc48aa
@ -32,6 +32,7 @@ impl Column {
|
|||||||
| ColumnType::Date
|
| ColumnType::Date
|
||||||
| ColumnType::Json
|
| ColumnType::Json
|
||||||
| ColumnType::JsonBinary
|
| ColumnType::JsonBinary
|
||||||
|
| ColumnType::Uuid
|
||||||
| ColumnType::Custom(_) => "String",
|
| ColumnType::Custom(_) => "String",
|
||||||
ColumnType::TinyInteger(_) => "i8",
|
ColumnType::TinyInteger(_) => "i8",
|
||||||
ColumnType::SmallInteger(_) => "i16",
|
ColumnType::SmallInteger(_) => "i16",
|
||||||
@ -83,6 +84,7 @@ impl Column {
|
|||||||
},
|
},
|
||||||
ColumnType::Json => quote! { ColumnType::Json.def() },
|
ColumnType::Json => quote! { ColumnType::Json.def() },
|
||||||
ColumnType::JsonBinary => quote! { ColumnType::JsonBinary.def() },
|
ColumnType::JsonBinary => quote! { ColumnType::JsonBinary.def() },
|
||||||
|
ColumnType::Uuid => quote! { ColumnType::Uuid.def() },
|
||||||
ColumnType::Custom(s) => {
|
ColumnType::Custom(s) => {
|
||||||
let s = s.to_string();
|
let s = s.to_string();
|
||||||
quote! { ColumnType::Custom(#s.to_owned()).def() }
|
quote! { ColumnType::Custom(#s.to_owned()).def() }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user