This commit is contained in:
Billy Chan 2021-11-02 14:25:18 +08:00
parent a95ee3123f
commit 65542301da
No known key found for this signature in database
GPG Key ID: A2D690CAC7DF3CC7

View File

@ -62,6 +62,7 @@ pub enum ColumnType {
Custom(String), Custom(String),
/// A Universally Unique IDentifier that is specified in RFC 4122 /// A Universally Unique IDentifier that is specified in RFC 4122
Uuid, Uuid,
/// `ENUM` data type with name and variants
Enum(String, Vec<String>), Enum(String, Vec<String>),
} }
@ -315,6 +316,7 @@ impl ColumnDef {
self self
} }
/// Get [ColumnType] as reference
pub fn get_column_type(&self) -> &ColumnType { pub fn get_column_type(&self) -> &ColumnType {
&self.col_type &self.col_type
} }