話してないけど、資料はあるので公開しまっする。 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
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ページを開く