Provides inflation to a Path::Class::File object allowing file system

storage of BLOBS.

The storage path is specified with fs_column_path. Each file receives
a unique name, so the storage for all FS columns can share the same
path.

Within the path specified by fs_column_path, files are stored in
sub-directories based on the first 2 characters of the unique file
names.  Up to 256 sub-directories will be created, as needed. Override
_fs_column_dirs in a derived class to change this behavior.

fs_new_on_update will create a new file name if the file has been
updated.

WWW: http://search.cpan.org/dist/DBIx-Class-InflateColumn-FS/
This commit is contained in:
Jun Kuriyama 2011-04-13 08:54:11 +00:00
parent b13c844fee
commit 2b42431f30
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=272665
5 changed files with 53 additions and 0 deletions

View file

@ -350,6 +350,7 @@
SUBDIR += p5-DBIx-Class-EncodedColumn
SUBDIR += p5-DBIx-Class-Fixtures
SUBDIR += p5-DBIx-Class-FrozenColumns
SUBDIR += p5-DBIx-Class-InflateColumn-FS
SUBDIR += p5-DBIx-Class-InflateColumn-IP
SUBDIR += p5-DBIx-Class-IntrospectableM2M
SUBDIR += p5-DBIx-Class-Loader

View file

@ -0,0 +1,28 @@
# New ports collection makefile for: DBIx::Class::InflateColumn::FS
# Date created: 18 Mar 2011
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= DBIx-Class-InflateColumn-FS
PORTVERSION= 0.01007
CATEGORIES= databases perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Perl extension to {in,de}flate columns to Path::Class::File objects
RUN_DEPENDS= \
p5-DBIx-Class>=0.08:${PORTSDIR}/databases/p5-DBIx-Class \
p5-DBIx-Class-UUIDColumns>=0.02005:${PORTSDIR}/databases/p5-DBIx-Class-UUIDColumns \
p5-Path-Class>0:${PORTSDIR}/devel/p5-Path-Class
BUILD_DEPENDS= ${RUN_DEPENDS}
PERL_CONFIGURE= yes
MAN3= DBIx::Class::InflateColumn::FS.3 \
DBIx::Class::InflateColumn::FS::ResultSet.3
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (DBIx-Class-InflateColumn-FS-0.01007.tar.gz) = a1f0042ac8092823808a2d5358a907f95973426a9b869efbc0492d915eefbfb2
SIZE (DBIx-Class-InflateColumn-FS-0.01007.tar.gz) = 31302

View file

@ -0,0 +1,16 @@
Provides inflation to a Path::Class::File object allowing file system
storage of BLOBS.
The storage path is specified with fs_column_path. Each file receives
a unique name, so the storage for all FS columns can share the same
path.
Within the path specified by fs_column_path, files are stored in
sub-directories based on the first 2 characters of the unique file
names. Up to 256 sub-directories will be created, as needed. Override
_fs_column_dirs in a derived class to change this behavior.
fs_new_on_update will create a new file name if the file has been
updated.
WWW: http://search.cpan.org/dist/DBIx-Class-InflateColumn-FS/

View file

@ -0,0 +1,6 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class/InflateColumn/FS/.packlist
%%SITE_PERL%%/DBIx/Class/InflateColumn/FS.pm
%%SITE_PERL%%/DBIx/Class/InflateColumn/FS/ResultSet.pm
@dirrm %%SITE_PERL%%/DBIx/Class/InflateColumn/FS
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class/InflateColumn/FS
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/DBIx/Class/InflateColumn