mirror of
https://git.freebsd.org/ports.git
synced 2025-05-25 07:26:29 -04:00
Custom prefetches for DBIx::Class.
PR: ports/180313 Submitted by: Anes Mukhametov <anes@anes.su>
This commit is contained in:
parent
7df16240d2
commit
2bb0a37dda
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=325201
5 changed files with 48 additions and 0 deletions
|
@ -341,6 +341,7 @@
|
||||||
SUBDIR += p5-DBIx-Class-AsFdat
|
SUBDIR += p5-DBIx-Class-AsFdat
|
||||||
SUBDIR += p5-DBIx-Class-Candy
|
SUBDIR += p5-DBIx-Class-Candy
|
||||||
SUBDIR += p5-DBIx-Class-Cursor-Cached
|
SUBDIR += p5-DBIx-Class-Cursor-Cached
|
||||||
|
SUBDIR += p5-DBIx-Class-CustomPrefetch
|
||||||
SUBDIR += p5-DBIx-Class-DateTime-Epoch
|
SUBDIR += p5-DBIx-Class-DateTime-Epoch
|
||||||
SUBDIR += p5-DBIx-Class-DeploymentHandler
|
SUBDIR += p5-DBIx-Class-DeploymentHandler
|
||||||
SUBDIR += p5-DBIx-Class-DigestColumns
|
SUBDIR += p5-DBIx-Class-DigestColumns
|
||||||
|
|
29
databases/p5-DBIx-Class-CustomPrefetch/Makefile
Normal file
29
databases/p5-DBIx-Class-CustomPrefetch/Makefile
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
# Created by: Anes Mukhametov <anes@anes.su>
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
PORTNAME= DBIx-Class-CustomPrefetch
|
||||||
|
PORTVERSION= 0.09
|
||||||
|
CATEGORIES= databases perl5
|
||||||
|
MASTER_SITES= CPAN
|
||||||
|
PKGNAMEPREFIX= p5-
|
||||||
|
|
||||||
|
MAINTAINER= anes@anes.su
|
||||||
|
COMMENT= Custom prefetches for DBIx::Class
|
||||||
|
|
||||||
|
BUILD_DEPENDS= p5-parent>=0:${PORTSDIR}/devel/p5-parent \
|
||||||
|
p5-Module-Load>=0:${PORTSDIR}/devel/p5-Module-Load \
|
||||||
|
p5-DBIx-Class-VirtualColumns>=0:${PORTSDIR}/databases/p5-DBIx-Class-VirtualColumns \
|
||||||
|
p5-Sub-Name>=0:${PORTSDIR}/devel/p5-Sub-Name \
|
||||||
|
p5-DBIx-Class>=0.081:${PORTSDIR}/databases/p5-DBIx-Class
|
||||||
|
RUN_DEPENDS= p5-parent>=0:${PORTSDIR}/devel/p5-parent \
|
||||||
|
p5-Module-Load>=0:${PORTSDIR}/devel/p5-Module-Load \
|
||||||
|
p5-DBIx-Class-VirtualColumns>=0:${PORTSDIR}/databases/p5-DBIx-Class-VirtualColumns \
|
||||||
|
p5-Sub-Name>=0:${PORTSDIR}/devel/p5-Sub-Name \
|
||||||
|
p5-DBIx-Class>=0.081:${PORTSDIR}/databases/p5-DBIx-Class
|
||||||
|
|
||||||
|
USES= perl5
|
||||||
|
USE_PERL5= configure
|
||||||
|
|
||||||
|
MAN3= DBIx::Class::CustomPrefetch.3 DBIx::Class::ResultSet::CustomPrefetch.3
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
2
databases/p5-DBIx-Class-CustomPrefetch/distinfo
Normal file
2
databases/p5-DBIx-Class-CustomPrefetch/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (DBIx-Class-CustomPrefetch-0.09.tar.gz) = 1374a8225f5cf6c1a9a4c7cdf9553b9acece14cf17da13f544a90c027c670661
|
||||||
|
SIZE (DBIx-Class-CustomPrefetch-0.09.tar.gz) = 55709
|
9
databases/p5-DBIx-Class-CustomPrefetch/pkg-descr
Normal file
9
databases/p5-DBIx-Class-CustomPrefetch/pkg-descr
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
DBIx::Class onle allows joins for prefetches.
|
||||||
|
But sometimes you can't use JOIN for prefetch.
|
||||||
|
E.g. for prefetching many related objects to resultset with paging.
|
||||||
|
|
||||||
|
Also you can use this module to create cross-database prefetches.
|
||||||
|
|
||||||
|
This module provides other logic for prefetching data to resultsets.
|
||||||
|
|
||||||
|
WWW: http://search.cpan.org/dist/DBIx-Class-CustomPrefetch/
|
7
databases/p5-DBIx-Class-CustomPrefetch/pkg-plist
Normal file
7
databases/p5-DBIx-Class-CustomPrefetch/pkg-plist
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
%%SITE_PERL%%/DBIx/Class/CustomPrefetch.pm
|
||||||
|
%%SITE_PERL%%/DBIx/Class/ResultSet/CustomPrefetch.pm
|
||||||
|
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class/CustomPrefetch/.packlist
|
||||||
|
@dirrmtry %%SITE_PERL%%/DBIx/Class/ResultSet
|
||||||
|
@dirrmtry %%SITE_PERL%%/DBIx/Class
|
||||||
|
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class/CustomPrefetch
|
||||||
|
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class
|
Loading…
Add table
Reference in a new issue