BSD Ports

databases/p5-T2 0.10_3 FreeBSD

Object Relational mapping system

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv2
Categories
databases, perl5
Package size
54.8 KiB, 131.4 KiB installed

Description

The T2 module is a base for the refactoring of the now quite stable Tangram Object-Relational mapper.

In a nutshell, it lets you store objects - which have to be described to a similar level that you would describe a database to store them - into any SQL store. Currently, this is tested on PostgreSQL, MySQL, Oracle and Sybase a lot, though in general database-specific extensions to SQL, such as triggers, stored procedures, etc are avoided. So, if DBI installs and tests successfully with your database, there is a good chance that T2 will work with it too.

The only current requirement is that objects that have tables associated with them are implemented via hashes. You also have to be able to describe all of the fields for those root objects. Individual fields of stored objects may be arbitrarily complex.

If you are familiar with DBI, it is somewhat similar to bless'ing the structures returned by $dbh->fetchrow_hashref, except that references and collections to other objects in the store are loaded `on demand' (aka Lazy-loading).

In the other systems

SystemPortVersion
FreeBSDdatabases/p5-T20.10_3
DragonFlydatabases/p5-T20.10_3

Install

Binary package:

pkg install p5-T2

From the ports tree:

cd /usr/ports/databases/p5-T2/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-T2>0:databases/p5-T2

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.10_30.10_30.10_30.10_30.10_3
FreeBSD:14:quarterly0.10_30.10_3n/a0.10_30.10_3
FreeBSD:15:latest0.10_30.10_3n/a0.10_30.10_3
FreeBSD:15:quarterly0.10_30.10_3n/an/an/a
FreeBSD:16:latest0.10_30.10_3n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 4

Runtime 4

The full lists below include those, and their dependencies in turn.

Build dependencies 9
Run dependencies 9

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 20
  • bin/t2-db-info.pl
  • bin/t2-fsck-schema.pl
  • bin/t2-migrate-db.pl
  • bin/t2-write-js.pl
  • %%SITE_PERL%%/T2.pm
  • %%SITE_PERL%%/T2/Association.pm
  • %%SITE_PERL%%/T2/Attribute.pm
  • %%SITE_PERL%%/T2/Class.pm
  • %%SITE_PERL%%/T2/DBSetup.pm
  • %%SITE_PERL%%/T2/Method.pm
  • %%SITE_PERL%%/T2/Schema.pm
  • %%SITE_PERL%%/T2/Storage.pm
  • %%PERL5_MAN3%%/T2.3.gz
  • %%PERL5_MAN3%%/T2::Association.3.gz
  • %%PERL5_MAN3%%/T2::Attribute.3.gz
  • %%PERL5_MAN3%%/T2::Class.3.gz
  • %%PERL5_MAN3%%/T2::DBSetup.3.gz
  • %%PERL5_MAN3%%/T2::Method.3.gz
  • %%PERL5_MAN3%%/T2::Schema.3.gz
  • %%PERL5_MAN3%%/T2::Storage.3.gz
distinfo 1
FileSizeSHA256
T2-0.10.tar.gz384263bda019a89c586dfffe1ffe4119082b072f2625f2b5c9ac036b8692b7887f3e0
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.