Doodle::Relation::Helpers
Doodle Relation Helpers
use Doodle; use Doodle::Relation; use Doodle::Table; my $ddl = Doodle->new; my $table = Doodle::Table->new( name => 'users', doodle => $ddl ); my $self = Doodle::Relation->new( table => $table, column => 'person_id', foreign_table => 'persons', foreign_column => 'id' );
Helpers for configuring Relation classes.
This package uses type constraints from:
Doodle::Library
This package implements the following methods:
on_delete(Str $action) : Relation
Denote the "ON DELETE" action for a foreign key constraint and returns the Relation.
# given: synopsis my $on_delete = $self->on_delete('cascade');
on_update(Str $action) : Relation
Denote the "ON UPDATE" action for a foreign key constraint and returns the Relation.
# given: synopsis my $on_update = $self->on_update('cascade');
Al Newkirk, awncorp@cpan.org
awncorp@cpan.org
Copyright (C) 2011-2019, Al Newkirk, et al.
This is free software; you can redistribute it and/or modify it under the terms of the The Apache License, Version 2.0, as elucidated in the "license file".
Wiki
Project
Initiatives
Milestones
Contributing
Issues
To install Doodle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Doodle
CPAN shell
perl -MCPAN -e shell install Doodle
For more information on module installation, please visit the detailed CPAN module installation guide.