BSD Ports

databases/ruby-dm-is-nested_set 1.2.0 NetBSD

DataMapper plugin for creating nested sets from data models

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
databases, ruby
Package size
28.6 KiB, 78.6 KiB installed

Description

DataMapper plugin allowing the creation of nested sets from data models. Provides all the same functionality as dm-is-tree, plus tons more! Read on.

== What is a nested set?

Nested set is a clever model for storing hierarchical data in a flat table. Instead of (only) storing the id of the parent on each node, a nested set puts all nodes in a clever structure (see Example below). That is what makes it possible to get the all of the descendants (not only immediate children), ancestors, or siblings, in one single query to the database.

The only downside to nested sets (compared to trees] is that the queries it takes to know these things, and to move nodes around in the tree are rather complex. That is what this plugin takes care of (+ lots of other neat stuff)!

Nested sets are a good choice for most kinds of ordered trees with more than two levels of nesting. Very good for menus, categories, and threaded posts.

Install

Binary package:

pkgin install ruby33-dm-is-nested_set

From pkgsrc:

cd /usr/pkgsrc/databases/ruby-dm-is-nested_set && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_641.2.0
NetBSD 10.1 aarch641.2.0
SmartOS / illumos x86_641.2.0
macOS 15 arm641.2.0

Dependencies

Run dependencies 2

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
ruby34-dm-is-nested_set-1.2.0, ruby40-dm-is-nested_set-1.2.0