• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux Catalyst::Model::DBIC::Schema Download

Catalyst::Model::DBIC::Schema

September 8, 2009
DBIx::Class::Schema Model Class is a software tool used for creating model classes that represent database tables, allowing for easy manipulation of data. It streamlines the process of querying databases and modifying table structures in object-oriented programming.
Version 0.29
License Perl Artistic License
Platform Linux
Supported Languages English
Homepage search.cpan.org
Developed by Rafael Kitover
Catalyst::Model::DBIC::Schema is a highly functional Catalyst Model that provides a DBIx::Class::Schema-based Model. If you'd like to generate these models via Helper scripts, please take a look at the Catalyst::Helper::Model::DBIC::Schema documentation. At the start-up of your Catalyst app, a thin Model layer is created to serve as an interface to your DBIC Schema. However, it's essential to note that the model object you receive from $c->model('FilmDB') is not a DBIC schema or resultset object, but instead a wrapper that provides ways to access the underlying schema.

Furthermore, a shortcut class is created for each source in the schema for seamless and straightforward direct access to a corresponding type's resultset. These shortcut classes are even thinner than the model class, and they provide no public methods; instead, they merely hook into Catalyst's model() accessor through the ACCEPT_CONTEXT mechanism. The following is roughly equivalent to the entire contents of each generated class:

package MyApp::Model::FilmDB::Actor
sub ACCEPT_CONTEXT {
my ($self, $c) = @_;
$c->model('FilmDB')->resultset('Actor');
}

There are three techniques to obtain a DBIC resultset object:

- the long way: my $rs = $c->model('FilmDB')->schema->resultset('Actor');
- using the shortcut method on the model object: my $rs = $c->model('FilmDB')->resultset('Actor');
- using the generated class directly: my $rs = $c->model('FilmDB::Actor');

If you need to add methods to a DBIC resultset, you can't just do that by adding them to the source (row, table) definition class; instead, you need to define a custom resultset class. For more information, please see "Predefined searches" in DBIx::Class::Manual::Cookbook.

Here's how to manually create a DBIx::Class::Schema and a Catalyst::Model::DBIC::Schema:

1. Create the DBIx::Class schema at MyApp/Schema/FilmDB.pm:

package MyApp::Schema::FilmDB;
use base qw/DBIx::Class::Schema/;
__PACKAGE__->load_classes(qw/Actor Role/);

2. Create some classes for the tables in the database. For instance, create an Actor in MyApp/Schema/FilmDB/Actor.pm:

package MyApp::Schema::FilmDB::Actor;
use base qw/DBIx::Class/
__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('actor');
...

And create a Role in MyApp/Schema/FilmDB/Role.pm:

package MyApp::Schema::FilmDB::Role;
use base qw/DBIx::Class/
__PACKAGE__->load_components(qw/Core/);
__PACKAGE__->table('role');
...

Note that the schema is in MyApp::Schema, not in MyApp::Model. This means that it's functional as a standalone module that can be tested and executed without Catalyst.

3. To expose it to Catalyst as a model, create a DBIC Model at MyApp/Model/FilmDB.pm:

package MyApp::Model::FilmDB;
use base qw/Catalyst::Model::
What's New

Version 0.29: N/A

Free Download 41.2K
329
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

AntiDialer
Antidialer is a Linux based broadband dialer with user-friendly GUI designed for ...
Xapwrap
Xapwrap enhances the user interface of the Xapian text indexing library.
JavaSolitaire
JavaSolitaire project is a Klondike solitaire game implementation that requires Java 1.5 ...
Fight or Perish
Dandy Dungeon is a multiplayer dungeon-crawling game that pays homage to the ...
Vatata RTSP server
Vatata RTSP server is a portable and modern streaming server that supports ...
cubicweb-vcsfile
Access local versioned file repositories as cubicweb entities via an interface.
AdvanceMENU
AdvanceMENU is a frontend tool that allows you to access and manage ...
VectorLinux Light
An Intel-supported Linux operating system designed for fast, efficient use on PCs. ...
SAS's Accounting Statistics
The software Sasacct retrieves traffic statistics from various sources such as ipchains, ...
Epoch2Time
Epoch2Time software converts UNIX epoch values to local time, providing quick and ...
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.