Add docs
This commit is contained in:
parent
a95ee3123f
commit
65542301da
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user