471eca0026
It is a base class for ResultSets providing just one method: recur- sive_update which works just like update_or_create but can recursively update or create data objects composed of multiple rows. All rows need to be identified by primary keys - so you need to provide them in the update structure (unless they can be deduced from the parent row - for example when you have a belongs_to relationship). If not all colums comprising the primary key are specified - then a new row will be cre- ated, with the expectation that the missing columns will be filled by it (as in the case of auto_increment primary keys).
29 lines
834 B
Makefile
29 lines
834 B
Makefile
# New ports collection makefile for: DBIx::Class::ResultSet::RecursiveUpdate
|
|
# Date created: 25 Mar 2009
|
|
# Whom: Lars Balker Rasmussen <lbr@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= DBIx-Class-ResultSet-RecursiveUpdate
|
|
PORTVERSION= v0.002
|
|
CATEGORIES= databases perl5
|
|
MASTER_SITES= CPAN
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
MAINTAINER= lbr@FreeBSD.org
|
|
COMMENT= Like update_or_create - but recursive
|
|
|
|
RUN_DEPENDS= \
|
|
p5-DBIx-Class>=0.08011:${PORTSDIR}/databases/p5-DBIx-Class \
|
|
p5-DBIx-Class-IntrospectableM2M>=0:${PORTSDIR}/databases/p5-DBIx-Class-IntrospectableM2M \
|
|
p5-version>=0:${PORTSDIR}/devel/p5-version \
|
|
p5-SQL-Translator>=0.08:${PORTSDIR}/databases/p5-SQL-Translator \
|
|
p5-DateTime>0:${PORTSDIR}/devel/p5-DateTime
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
MAN3= DBIx::Class::ResultSet::RecursiveUpdate.3
|
|
|
|
.include <bsd.port.mk>
|