NestedSets for Ecto

NestedSets

Hex VersionHexDocsCI Status

Battle-tested NestedSets for Ecto that supports PostgreSQL, SQLite, and MySQL.

TODO: about Ecto 3.12+, add to doc depth is also a level

Installation

Add nested_sets to your list of dependencies in mix.exs:

def deps do
  [
    {:nested_sets, "~> 0.1.0"}
  ]
end

NestedSets requires Elixir 1.16 or later, and OTP 25 or later. It may work with earlier versions, but it wasn't tested against them.

Follow the installation instructions to set up NestedSets in your application.

Migration Guide

Migration instructions will appear here once the first breaking changes are introduced. For now, no action is required.