Linux SoftwareProgrammingLibrariesDBIx::Class::Schema::Loader::RelBuilder 0.03007

DBIx::Class::Schema::Loader::RelBuilder 0.03007


DBIx::Class::Schema::Loader::RelBuilder is a Perl module that builds relationships for DBIx::Class::Schema::Loader. This class bui
Developer:   Brandon Black
      more software by author →
Price:  0.00
License:   Perl Artistic License
File size:   32K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


DBIx::Class::Schema::Loader::RelBuilder is a Perl module that builds relationships for DBIx::Class::Schema::Loader.

This class builds relationships for DBIx::Class::Schema::Loader. This is module is not (yet) for external use.

METHODS

new

Arguments: schema_class (scalar), fk_info (hashref), inflect_plural, inflect_singular

$schema_class should be a schema class name, where the source classes have already been set up and registered. Column info, primary key, and unique constraints will be drawn from this schema for all of the existing source monikers.

The fk_info hashref's contents should take the form:

{
TableMoniker => [
{
local_columns => [ 'col2', 'col3' ],
remote_columns => [ 'col5', 'col7' ],
remote_moniker => 'AnotherTableMoniker',
},
# ...
],
AnotherTableMoniker => [
# ...
],
# ...
}

Options inflect_plural and inflect_singular are optional, and are better documented in DBIx::Class::Schema::Loader::Base.

generate_code

This method will return the generated relationships as a hashref per table moniker, containing an arrayref of code strings which can be "eval"-ed in the context of the source class, like:

{
'Some::Source::Class' => [
"belongs_to( col1 => 'AnotherTableMoniker' )",
"has_many( anothers => 'AnotherTableMoniker', 'col15' )",
],
'Another::Source::Class' => [
# ...
],
# ...
}

You might want to use this in building an on-disk source class file, by adding each string to the appropriate source class file, prefixed by __PACKAGE__->.

Requirements:
  • Perl
    tags source class  class schema  dbix class  schema loader  schema class  inflect singular  inflect plural  class file  the source  loader this  builds relationships  relationships for  for dbix  

    Download DBIx::Class::Schema::Loader::RelBuilder 0.03007


     http://ftp.casaafacerilor.ro/mirrors/CPAN/authors/id/B/BL/BLBLACK/DBIx-Class-Schema-Loader-0.03007.tar.gz


    Authors software

    DBIx::Class::Schema::Loader::RelBuilder 0.03007 (by Brandon Black)
    DBIx::Class::Schema::Loader::RelBuilder is a Perl module that builds relationships for DBIx::Class::Schema::Loader.

    This class bui


    Similar software

    DBIx::Class::Schema::Loader::RelBuilder 0.03007 (by Brandon Black)
    DBIx::Class::Schema::Loader::RelBuilder is a Perl module that builds relationships for DBIx::Class::Schema::Loader.

    This class bui

    DBIx::Class::CDBICompat 0.07002 (by Matt S. Trout)
    DBIx::Class::CDBICompat is a Class::DBI Compatibility layer.

    SYNOPSIS

    use base qw/DBIx::Class/;
    __PACKAGE__->load_componen

    DBIx::Class::FormTools 0.000004 (by David Jack Olrik)
    DBIx::Class::FormTools is a utility module for building forms with multiple related DBIx::Class objects.

    SYNOPSIS

    In the exampl

    Object::Relation::Meta::Class::Schema 0.1.0 (by Kineticode, Inc.)
    Object::Relation::Meta::Class::Schema is a Perl module for Object::Relation database store builder.

    This module is provides metada

    XML::Schema::Type::Simple 0.07 (by Andy Wardley)

    DBIx::DataModel 0.21 (by Laurent Dami)
    DBIx::DataModel is a Perl module with Classes and UML-style Associations on top of DBI.

    SYNOPSIS

    in file "MySchema.pm"

    Decla

    DBIx::Migration::Directories 0.05 (by Tyler MacDonald)
    DBIx::Migration::Directories is a Perl module to install/remove/upgrade/downgrade SQL schemas.

    SYNOPSIS

    use DBIx::Migration::D

    Object::Relation::Meta::Attribute::Schema 0.1.0 (by Kineticode, Inc.)
    Object::Relation::Meta::Attribute::Schema is a Perl module for Object::Relation database store builder.

    Synopsis

    # Assuming M

    JaxMe 0.5.2 (by Jochen Wiedmann)
    JaxMe project is an open source implementation of JAXB, the specification for Java/XML binding.

    A Java/XML binding compiler takes

    Class::DBI::DataMigration::Mapping 0.02 (by Dan Friedman)
    Class::DBI::DataMigration::Mapping is an abstract parent class for objects that map a single column in a single row from the source d


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags