Closure Table v0.1.1 API Reference

Modules

CTE

The Closure Table for Elixir strategy, CTE for short, is a simple and elegant way of storing and working with hierarchies. It involves storing all paths through a tree, not just those with a direct parent-child relationship. You may want to chose this model, over the Nested Sets model, should you need referential integrity and to assign nodes to multiple trees.

Specification of the Closure Table implementation.

A CTE Adapter implementation using an existing Ecto Repo for persisting the models.

Basic implementation of the CTE, using the memory for persisting the models. Adapter provided as a convenient way of using CTE in tests or during the development

Basic utilities for helping developing functionality about the CTE data structures