EctoLtree v0.2.1 EctoLtree.Functions View Source
This module exposes the ltree
functions.
For more information see the PostgreSQL documentation.
Link to this section Summary
Functions
position of first occurrence of b in a; -1 if not found.
position of first occurrence of b in a, searching starting at offset; negative offset means start -offset labels from the end of the path.
lowest common ancestor.
cast ltree
to text
.
number of labels in path.
subpath of ltree
from position start to position end-1 (counting from 0).
subpath of ltree
starting at position offset, extending to end of path.
If offset is negative, subpath starts that far from the end of the path.
subpath of ltree
starting at position offset, length len.
If offset is negative, subpath starts that far from the end of the path.
If len is negative, leaves that many labels off the end of the path.
cast text
to ltree
.
Link to this section Functions
index(a, b) View Source (macro)
position of first occurrence of b in a; -1 if not found.
index(a, b, offset) View Source (macro)
position of first occurrence of b in a, searching starting at offset; negative offset means start -offset labels from the end of the path.
lca(a, b) View Source (macro)
lowest common ancestor.
ltree2text(ltree) View Source (macro)
cast ltree
to text
.
nlevel(ltree) View Source (macro)
number of labels in path.
subltree(ltree, start, finish) View Source (macro)
subpath of ltree
from position start to position end-1 (counting from 0).
subpath(ltree, offset) View Source (macro)
subpath of ltree
starting at position offset, extending to end of path.
If offset is negative, subpath starts that far from the end of the path.
subpath(ltree, offset, len) View Source (macro)
subpath of ltree
starting at position offset, length len.
If offset is negative, subpath starts that far from the end of the path.
If len is negative, leaves that many labels off the end of the path.
text2ltree(text) View Source (macro)
cast text
to ltree
.