diff --git a/src/table/column.rs b/src/table/column.rs index 4e56121b9..baecd6559 100644 --- a/src/table/column.rs +++ b/src/table/column.rs @@ -52,6 +52,7 @@ pub enum ColumnType { Cidr, Inet, MacAddr, + LTree, } impl PartialEq for ColumnType { @@ -580,6 +581,13 @@ impl ColumnDef { self } + /// Set column type as `ltree` + /// This is only supported on Postgres. + pub fn ltree(&mut self) -> &mut Self { + self.types = Some(ColumnType::LTree); + self + } + /// Set constraints as SimpleExpr pub fn check(&mut self, value: T) -> &mut Self where