The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Manoc::DB - Manoc DB Schema

VERSION

version 2.99.2

DESCRIPTION

Manoc DB Schema extends DBIx::Class::Schema.

It also loads the required DBIx::Class::Helper components and provides methods for schema configuration and initialization.

METHODS

allowed_column_keys

This method is overriden from DBIx::Class::Helper::Schema::Verifier::ColumnInfo to add some non-standard confg keys used by Manoc

init_admin

Create or reset admin user.

init_vlan

When there is no defined VlanRange create a sample range with a sample vlan.

init_ipnetwork

Whene there is no defined IPNetwork rows create some sample networks and subnetworks.

init_roles

Populate Role rows based on Manoc default roles defined in App::Manoc::CatalystRole::Permission

init_management_url

Create some sample MngUrlFormat rows.

FUNCTIONS

base_result

Return 'App::Manoc::DB::Result'

base_resultset

Return 'App::Manoc::DB::ResultSet'

get_version

Return the current schema version. Used tools like datadumper.

AUTHORS

  • Gabriele Mambrini <gmambro@cpan.org>

  • Enrico Liguori

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Gabriele Mambrini.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.