EctoLtree.Functions (EctoLtree v0.4.0) 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

position of first occurrence of b in a; -1 if not found.

Link to this macro

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.

lowest common ancestor.

Link to this macro

ltree2text(ltree)

View Source (macro)

cast ltree to text.

number of labels in path.

Link to this macro

subltree(ltree, start, finish)

View Source (macro)

subpath of ltree from position start to position end-1 (counting from 0).

Link to this macro

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.

Link to this macro

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.

Link to this macro

text2ltree(text)

View Source (macro)

cast text to ltree.