NAME
Doodle::Relation::Helpers
ABSTRACT
Doodle Relation Helpers
SYNOPSIS
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'
);
DESCRIPTION
Helpers for configuring Relation classes.
LIBRARIES
This package uses type constraints from:
METHODS
This package implements the following methods:
on_delete
on_delete(Str $action) : Relation
Denote the "ON DELETE" action for a foreign key constraint and returns the Relation.
on_update
on_update(Str $action) : Relation
Denote the "ON UPDATE" action for a foreign key constraint and returns the Relation.
AUTHOR
Al Newkirk, awncorp@cpan.org
LICENSE
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".