Constructs a PostgreSQL ltree literal from a character string. This is useful for composing queries that rely on ltree path syntax.
Arguments
- x
character A single string or character vector to be cast to
ltree
.
Value
character A string or character vector of PostgreSQL ltree-compatible text. Each element is wrapped in single quotes and cast with ::ltree
.