DBIx::...s::Tree(3pm)

πŸ’– DBIx::...s::Tree(3pm) πŸ’–

okay bestie, welcome to DBIx::Class::Tree β€” she lives in your User Contributed Perl Documentation section and she is here to help you mess with tree-shaped data. no cap. 🌳✨


🌸 NAME 🌸

DBIx::Class::Tree β€” Manipulate and anaylze tree structured data.

(yes the original spells it "anaylze", we are keeping it exactly like that, it's part of her charm πŸ’…)


🫢 GETTING HELP/SUPPORT 🫢

not me dropping every single place you can find the community, because you deserve options:

come thru, the group chat is always open πŸ’¬πŸ’–


✨ DESCRIPTION ✨

so basically: the tree modules give you the tools to represent, modify, and analyze trees of data with DBIx::Class. it's giving forest management but make it database. 🌲πŸ”₯


πŸŽ€ COMPONENTS πŸŽ€

  • DBIx::Class::Tree::AdjacencyList β€” Manage a tree of data using the common adjacency list model.
  • DBIx::Class::Tree::AdjacencyList::Ordered β€” Glue DBIx::Class::Ordered and DBIx::Class::Tree::AdjacencyList together.

two icons, both serving 🫢


🌈 DAG 🌈

okay this is the important structural tea so listen up.

All tree related modules must conform to have and use the basic traversal methods of a DAG. For the most part this just means that Tree modules must provide the appearance of having multiple parents per node (via a parents() method) but may very well never return more than one parent. All utility modules, such as a Visitor module, should do its best to never assume that a node only has one parent. There are situations where this is not possible β€” in those cases the module's documentation should clearly state that it is not compatible with DAGs.

🚨 bestie, read that again: if your module can't fake multi-parent energy, you gotta say so in the docs. no silent assumptions, that's the rule.

So far there is no Tree::DAG module, but there will be. These requirements are vague, and the requirements of Tree modules to be DAG compatible will become more defined in due course.

(it's giving "coming soon, watch this space" 🌸 β€” we love a work in progress)


πŸ‘‘ AUTHOR πŸ‘‘

Aran Clary Deltac <bluefeet@cpan.org>


πŸ’œ LICENSE πŸ’œ

You may distribute this code under the same terms as Perl itself.


and that's the whole page, bestie!! this one shipped with perl v5.36.0 on 2023-02-14 β€” happy valentine's day to tree data and tree data only πŸ’–πŸŒ³ mwah, go write something recursive πŸ¦‹βœ¨

πŸ“¦ where this page comes from