NAME
Aniki::Schema::Relationship::Declare - DSL for declaring relationship rules
SYNOPSIS
use 5.014002;
package MyProj::DB::Schema {
use DBIx::Schema::DSL;
use Aniki::Schema::Relationship::Declare;
create_table 'module' => columns {
integer 'id', primary_key, auto_increment;
varchar 'name';
integer 'author_id';
add_index 'author_id_idx' => ['author_id'];
relay_to 'author', name => '';
};
create_table 'author' => columns {
integer 'id', primary_key, auto_increment;
varchar 'name', unique;
relay_by 'module';
};
};
1;
FUNCTIONS
relay_to
relay_by
relation
SEE ALSO
LICENSE
Copyright (C) karupanerura.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHOR
karupanerura <karupa@cpan.org>