| Meta documentation | Contained in the Meta distribution. |
Meta::Db::Constraints - store a list of constraints.
Copyright (C) 2001, 2002 Mark Veltzer; All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
MANIFEST: Constraints.pm PROJECT: meta VERSION: 0.05
package foo; use Meta::Db::Constraints qw(); my($object)=Meta::Db::Constraints->new(); my($result)=$object->method();
This class holds the list of constraints that have to do with a single RDBMS table.
print($$) printd($$) printx($$) getsql_create($$$) TEST($)
This prints.
This prints.
This prints.
This method will create all the constraints.
Test suite for this object.
Meta::Ds::Ochash(3), Meta::Ds::Connected(3)
None.
Name: Mark Veltzer Email: mailto:veltzer@cpan.org WWW: http://www.veltzer.org CPAN id: VELTZER
0.00 MV dbman package creation 0.01 MV more thumbnail issues 0.02 MV website construction 0.03 MV web site automation 0.04 MV SEE ALSO section fix 0.05 MV md5 issues
Meta::Ds::Connected(3), Meta::Ds::Ochash(3), strict(3)
Nothing.
| Meta documentation | Contained in the Meta distribution. |
#!/bin/echo This is a perl module and should not be run package Meta::Db::Constraints; use strict qw(vars refs subs); use Meta::Ds::Connected qw(); use Meta::Ds::Ochash qw(); our($VERSION,@ISA); $VERSION="0.05"; @ISA=qw(Meta::Ds::Ochash Meta::Ds::Connected); #sub print($$); #sub printd($$); #sub printx($$); #sub getsql_create($$$); #sub TEST($); #__DATA__ sub print($$) { } sub printd($$) { } sub printx($$) { } sub getsql_create($$$) { my($self,$stats,$info)=@_; for(my($i)=0;$i<$self->size();$i++) { my($curr)=$self->elem($i); $curr->getsql_create($stats,$info); } } sub TEST($) { my($context)=@_; return(1); } 1; __END__