There was an error while loading. Please reload this page.
from_labels
1 parent 005a2d2 commit 9b3efbfCopy full SHA for 9b3efbf
1 file changed
sqlx-postgres/src/types/ltree.rs
@@ -95,6 +95,11 @@ impl PgLTree {
95
Self::default()
96
}
97
98
+ /// creates ltree from a [`Vec<PgLTreeLabel>`]
99
+ pub fn from_labels(labels: Vec<PgLTreeLabel>) -> Self {
100
+ Self { labels }
101
+ }
102
+
103
/// creates ltree from an iterator with checking labels
104
// TODO: this should just be removed but I didn't want to bury it in a massive diff
105
#[deprecated = "renamed to `try_from_iter()`"]
0 commit comments