View Source CTE.Adapter.Memory (Closure Table v1.1.2)
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
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Delete a leaf or a subtree.
Initializes the adapter supervision tree by returning the children and adapter metadata.
start the Adapter server
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Delete a leaf or a subtree.
To delete a leaf node set the limit option to: 1, and in this particular case all the nodes that reference the leaf will be assigned to the leaf's immediate ancestor
If limit is 0, then the leaf and its descendants will be deleted
Initializes the adapter supervision tree by returning the children and adapter metadata.
start the Adapter server