- バックアップ一覧
- 差分 を表示
- 現在との差分 を表示
- ソース を表示
- Perl-DBIx-Skinny/スキーマの設定方法(基本) へ行く。
- 1 (2010-10-23 (土) 18:48:43)
- 2 (2010-10-23 (土) 19:12:30)
DBIx::Skinny スキーマクラス
package MyDB;
use DBIx::Skinny setup =>
{ dsn => 'dbi:Pg:dbname=test_db;host=localhost', username => 'scott', password => '' };
package MyDB::Schema;
use DBIx::Skinny::Schema;
install_table users => schema {
pk 'id';
columns qw/id name birth_on group_id/;
};
install_table groups => schema {
pk 'id';
columns qw/id name/;
};