Class::DBI::Set

[prev] [thread] [next] [Date index for 2004/06/25]

From: Yuval Kogman
Subject: Class::DBI::Set
Date: 18:08 on 25 Jun 2004
--qDbXVdCdHGoSgWSk
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Howdy...

I'll be needing this for my project.

	my $smiths =3D Class::DBI::Set->new;
	$smiths->contraints( surname =3D> "Smith" );

	my $johns =3D Class::DBI::Set->new;
	$johns->constraints( name =3D> "John" );

	my $john_smiths =3D $john & $smith;
	$john_smiths->retrieve_all;

Just your plain old, simple sets with CDBI. It should be a nice project.
But now the catch.

I want to store a set in a database. As for the schema - i'm not
worried. I'll cross that bridge when I get there. But how silly is it to
start wrapping CDBI class methods so that that when it's a class method
it SUPER::method's, and when it's an object method it does the set
specific operations? Is it better to generate a class per set? Would a
interface with other method names be better or worse? (less conflicts is
also less consistent). Is there any way to get this right at all? Has
anybody tried this before?

See also http://www.thelackthereof.org/wiki.pl/SetDB

--=20
 ()  Yuval Kogman <nothingmuch@xxxxxxxx.xxx> 0xEBD27418  perl hacker &
 /\  kung foo master: /me spreads pj3Ar using 0wnage: neeyah!!!!!!!!!!!


--qDbXVdCdHGoSgWSk
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFA3GoLVCwRwOvSdBgRAk8dAJ41sjGz4wYJisDFOjE1kbGzCZs0bwCgwU7E
SjKBK5m8t+WopK7V7gxrJBU=
=x7TW
-----END PGP SIGNATURE-----

--qDbXVdCdHGoSgWSk--

Class::DBI::Set
Yuval Kogman 18:08 on 25 Jun 2004

Re: Class::DBI::Set
steve shapero 08:19 on 28 Jun 2004

Re: Class::DBI::Set
Yuval Kogman 13:26 on 27 Jun 2004

Re: Class::DBI::Set
merlyn (Randal L. Schwartz) 14:23 on 28 Jun 2004

Re: Class::DBI::Set
Tony Bowden 10:10 on 28 Jun 2004

Re: Class::DBI::Set
"raptor 12:58 on 28 Jun 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52