Skip to content

Initializer

init(_:)

Create an ltree by splitting a dotted path into its labels.
init(_ description: String)

Parameters

description

A dotted path, e.g. Top.Science.Astronomy.

Discussion

Empty labels, like in a..b, are dropped. Other invalid labels are left for Postgres to reject.