From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

NAME

TreePath::Backend::DBIx - Backend 'DBIx' for TreePath

VERSION

version 0.22

CONFIGURATION

$tp = TreePath->new( conf => 't/conf/treefromdbix.yml' );
# t/conf/treefromdbix.yml
Model::TPath:
schema_class: Schema::TPath
connect_info:
dsn: 'dbi:SQLite:dbname=:memory:'
TreePath:
debug: 0
backend:
name: DBIx
args:
model: Model::TPath
populate_backend: 1
sources_name:
Page:
columns:
- name
- parent
search_field: name
parent_field: parent
Comment:
columns:
- page
parent_field: page

REQUIRED SCHEMA

See t/lib/Schema/TPath.pm

AUTHOR

Daniel Brosseau, <dab at catapulse.org>

LICENSE AND COPYRIGHT

Copyright 2014 Daniel Brosseau.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.