diff --git a/sqlalchemy_utils/primitives/ltree.py b/sqlalchemy_utils/primitives/ltree.py index e330259..ddae116 100644 --- a/sqlalchemy_utils/primitives/ltree.py +++ b/sqlalchemy_utils/primitives/ltree.py @@ -22,7 +22,7 @@ class Ltree(object): Ltree('1.2.3').path # '1.2.3' - Ltree always validates the given code. + Ltree always validates the given path. :: @@ -31,6 +31,14 @@ class Ltree(object): Ltree('..') # raises ValueError + Validator is also available as class method. + + :: + + Ltree.validate('1.2.3') + Ltree.validate(None) # raises ValueError + + Ltree supports equality operators. ::