GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Bigtop::Backend::Model::GantryDBIxClass(3) User Contributed Perl Documentation Bigtop::Backend::Model::GantryDBIxClass(3)

[% app_name %]::Model - schema class for [% app_name +%]

In your base module:

    use [% app_name %]::Model;
    sub schema_base_class { return '[% app_name %]::Model'; }
    use Gantry::Plugins::DBIxClassConn qw( get_schema );

[%- FOREACH table_model IN table_models -%] use [% app_name %]::Model::[% table_model %] qw( $[% table_model | upper %] );

[%- END -%]

This module was generated by Bigtop. But, feel free to edit it. You might even want to update these docs.
get_db_options
The generated version sets AutoCommit to 1, this assumes that you will do all transaction work via the DBIx::Class API.

    Gantry::Utils::DBIxClass
    [% app_name %]::GENModel

[% FOREACH author IN authors %] [% author.0 %][% IF author.1 %], <[% author.1 %]>[% END %]

[% END %]

Copyright (C) [% year %] [% copyright_holder %]

[% IF license_text %] [% ELSE %] This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available. [% END %]

[% app_name %]::GENModel - regenerating schema for [% app_name %]

In your base schema:

    use base 'DBIx::Class::Schema';
    use [% app_name %]::GENModel;

This module was generated by Bigtop (and IS subject to regeneration).

    Gantry::Utils::DBIxClass

[% FOREACH author IN authors %] [% author.0 %][% IF author.1 %], <[% author.1 %]>[% END %]

[% END %]

Copyright (C) [% year %] [% copyright_holder %]

[% IF license_text %] [% ELSE %] This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available. [% END %]

[% package_name %] - model for [% table_name %] table (stub part)

This model inherits from its generated helper, which inherits from [% base_class || base_class_default %]. It was generated by Bigtop, but is NOT subject to regeneration.

You may use all normal [% base_class || base_class_default %] methods and the ones listed here:
get_foreign_display_fields
get_foreign_tables
foreign_display
table_name [% FOREACH option_field IN option_fields %]
[% option_field.name %]_display [% END %]

[% gen_package_name %] - model for [% table_name %] table (generated part)

This model inherits from [% base_class || base_class_default %]. It was generated by Bigtop, and IS subject to regeneration.

You may use all normal [% base_class || base_class_default %] methods and the ones listed here:
get_foreign_display_fields
get_foreign_tables
foreign_display
table_name [% FOREACH extra_method IN extra_methods %]
[% extra_method +%] [% END %]

[% stub_package %] - model for [% table_name %] table (stub part)

This model inherits from its generated helper, which inherits from Gantry::Utils::DBIxClass. It was generated by Bigtop, but is NOT subject to regeneration.

[% gen_package %] - model for [% table_name %] table (generated part)

This model inherits from Gantry::Utils::DBIxClass. It was generated by Bigtop, and IS subject to regeneration.

You may use all normal Gantry::Utils::DBIxClass methods and the ones listed here:
get_foreign_display_fields
get_foreign_tables
foreign_display
table_name [% FOREACH extra_method IN extra_methods %]
[% extra_method +%] [% END %]

Bigtop::Backend::Model::GantryDBIxClass - Bigtop backend generating DBIx::Class models

If your bigtop file looks like this:

    config {
        base_dir `/home/user`;
        ...
        Model GantryDBIxClass {}
    }
    app Name {...}

and there are tables in the app block, when you type:

    bigtop your.bigtop Model

or bigtop your.bigtop all

this module will make model modules which are subclasses of Gantry::Utils::DBIxClass (which inherits from DBIx::Class).

All modules will live in the lib subdirectory of the app's build directory. See Bigtop::Init::Std for an explanation of how base_dir and the build directory are related.

This is a Bigtop backend which generates data model modules which are subclasses of Gantry::Utils::DBIxClass.

This module does not register any keywords. See Bigtop::Model for a list of keywords models understand.

The default for the model_base_class keyword is Gantry::Utils::DBIxClass.

To keep podcoverage tests happy.
backend_block_keywords
Tells tentmaker that I understand these config section backend block keywords:

    no_gen
    model_base_class
    template
    
what_do_you_make
Tells tentmaker what this module makes. Summary: DBIx::Class models and schema.
gen_Model
Called by Bigtop::Parser to get me to do my thing.
setup_template
Called by Bigtop::Parser so the user can substitute an alternate template for the hard coded one here.

Phil Crow <crow.phil@gmail.com>

Copyright (C) 2005 by Phil Crow

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.

2022-04-09 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.