Gossamer Forum
Quote Reply
GT::SQL::Tree question
I am going to use GT::SQL::Tree in a plugin.

If I understand correctly, I have to have certain fields in the table (father, root, depth) where I want to create the tree on. Assuming that those cols in the table already contain the correct values, I create the tree table once, using

$editor->add_tree( { father => 'father_col', root => 'root_col', depth => 'depth_col' });

Then, whenever a record is added/updated/deleted GT::SQL::Table will automatically synchronize the tree table. Is this correct?

Are there other things that one should know, be aware of?

Iyengar Yoga Resources / GT Plugins