話ãã¦ãªããã©ãè³æã¯ããã®ã§å ¬éãã¾ã£ããã Customization of DBIC::Schema::Loader æ¦è¦ éçºä¸ã«ã¹ãã¼ãã«å¤æ´ãçºçãã¦ãmake_schema_at()ãä½åº¦ãå©ãéã«å°ããã¨ã¨ãSchema::Loaderã§æ¯è¼çæå³ããéãã«Schema, Tableã¯ã©ã¹ãçæããçºã«ããããªé¢¨ã«ããã¨ãããã£ã¦å 容ã§ãã ãã£ãã¡ãªäººåã ãããªæãã å 容ã®è§£èª¬ã¯ãã¬ã¼ã³è³æãè¦ã¦ãã ããã #!/usr/bin/perl use strict; use warnings; use FindBin; use File::Spec; use lib ( File::Spec->catfile( $FindBin::Bin, qw/.. lib/ ), File::Spec->catfile( $FindBin::Bin, qw/.. schema/ )
http://d.hatena.ne.jp/naoya/20080419/1208579525 naoyaããã®ããµã¨æãåºãã¦DBICã§ã®åºæ¥ãããã«æ¸ãã¦ã¿ã次第ã DBIx::MoCoã®å ´åã¨ã¯ç°ãªãDBICã®å ´åã¯ã searchã¡ã½ããããæ»ã£ã¦ãããã®ã¯ã¹ã«ã©ã¼ã³ã³ããã¹ãã§ã¯ResultSetãªã®ã§ ç¡çç¢çDBIC::ResultSetã«mapã¡ã½ãããçããã¦ã¿ãã package DBIx::Class::RowCollection; use strict; use warnings; use base 'DBIx::Class'; our $VERSION = '0.01'; { use DBIx::Class::ResultSet; package DBIx::Class::ResultSet; use Params::Validate qw/:all/; use
Recently I talked with Stevan Little about the Moose project. You can listen to the interview, or, thanks to cPanel, you can read the transcript below. Josh McAdams: Welcome to Perlcast. This is your host, Josh McAdams. I'm here with an interview with Stevan Little, the creator of Moose. Heather Hendrix-McAdams: The transcription of this show was underwritten by cPanel. cPanel is currently hiring
NAME DBICx::AutoDoc - Generate automatic documentation of DBIx::Class::Schema objects SYNOPSIS The recommended way to use this package is with the command-line tool dbicx-autodoc. You should check it's documentation for more details. use DBICx:::AutoDoc; my $ad = DBICx:::AutoDoc->new( schema => 'MyApp::DB', output => '/tmp', ); $ad->fill_template( 'html' ); DESCRIPTION DBICx::AutoDoc is a utility
DBICx::Deployã便å©ãã ããã¯æ¢ã«ããæ¢åã®Schemaã¯ã©ã¹ãããã¼ã¿ãã¼ã¹ãæ§ç¯(deploy)ããç©ã§ãã å ã MySQLã§ãã¼ãã«ä½ã£ã¦ããDBIx::Class::Schema::Loaderã¨ãã§Schemaçæãã¦ãã£ãã¨ãã¦ã ãããSQLiteã§æå ã§ã¡ãã£ã¨ãã¹ãã¨ãããããã®ã«ä½¿ãããã PODã«ããã¾ãã¾ã§ããã©ã $ dbicdeploy -Ilib My::Schema DBI:SQLite:root/databaseãããªãã§åºæ¥ããã¦ãã¼ã
NAME DBICx::Deploy - deploy a DBIx::Class schema SYNOPSIS use DBICx::Deploy; DBICx::Deploy->deploy('My::Schema' => 'DBI:SQLite:root/database'); or $ dbicdeploy -Ilib My::Schema DBI:SQLite:root/database METHODS deploy($schema, $dsn, @args) Loads the DBIC schema $schema, connects to $dsn (with extra args @args like username, password, and options), and deploys the schema. Dies on failure. If $dsn do
NAME DBIx::Class::Schema::Versioned - DBIx::Class::Schema plugin for Schema upgrades SYNOPSIS package MyApp::Schema; use base qw/DBIx::Class::Schema/; our $VERSION = 0.001; # load MyApp::Schema::CD, MyApp::Schema::Book, MyApp::Schema::DVD __PACKAGE__->load_classes(qw/CD Book DVD/); __PACKAGE__->load_components(qw/Schema::Versioned/); __PACKAGE__->upgrade_directory('/path/to/upgrades/'); DESCRIPTIO
mst: Matt S Trout (project founder - original idea, architecture and implementation) castaway: Jess Robinson (lions share of the reference documentation and manuals) abraxxa: Alexander Hartmaier acca: Alexander Kuznetsov acme: Leon Brocard aherzog: Adam Herzog Alexander Keusch alexrj: Alessandro Ranellucci alnewkirk: Al Newkirk Altreus: Alastair McGowan-Douglas amiri: Amiri Barksdale amoore: Andre
ã¡ãã£ã¨ç ®è©°ã¾ã£ãã®ã§ãä»äººã®ã³ã¼ããèªããã¨ã«ãCatalystã®Wikiã«ã¯Exampleãªãã»ã¯ã·ã§ã³ããã£ã¦ãããã¤ãã¢ããªã±ã¼ã·ã§ã³ãç´¹ä»ããã¦ããã®ã ãã©ããã¨ãã¨ããã¡(åããªãã確ãã«Catalyst使ã£ã¦ãããã©ãªããéããã½ã¼ã¹ããã¦ã³ãã¼ãã§ããªãã¨ã)ãmojomojoãåèã«ãªãããã ã§ãèªãã§ããã¨ã³ã¡ã³ãããã¼ã¿ãã¼ã¹ã«çªã£è¾¼ãéã« $c->model("DBIC::Comment")->create_from_form($c->form); ãªãã¦ãã¦ãããã¼ãããã ãã§ããã®ãã DBIx::Class::WebForm - CRUD Methods For DBIx::Class FormValidatorã¨DBIx::Class::WebFormã®çµã¿åããã¯ããã ãªãã¤ã¼ããããããã·ã§ãã¯ã£ã¦Vimã«ä¼¼ã¦ã(Tip #1: the super
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}