[Bast-commits] r5362 - DBIx-Class-InflateColumn-Object-Enum/1.000/trunk

jmmills at dev.catalyst.perl.org jmmills at dev.catalyst.perl.org
Wed Jan 28 23:41:19 GMT 2009


Author: jmmills
Date: 2009-01-28 23:41:19 +0000 (Wed, 28 Jan 2009)
New Revision: 5362

Added:
   DBIx-Class-InflateColumn-Object-Enum/1.000/trunk/README
Modified:
   DBIx-Class-InflateColumn-Object-Enum/1.000/trunk/MANIFEST.SKIP
Log:
Added dist readme and some blib skipping, pause indexer is having issues with the lastest release



Modified: DBIx-Class-InflateColumn-Object-Enum/1.000/trunk/MANIFEST.SKIP
===================================================================
--- DBIx-Class-InflateColumn-Object-Enum/1.000/trunk/MANIFEST.SKIP	2009-01-28 15:09:23 UTC (rev 5361)
+++ DBIx-Class-InflateColumn-Object-Enum/1.000/trunk/MANIFEST.SKIP	2009-01-28 23:41:19 UTC (rev 5362)
@@ -1,3 +1,4 @@
 \.svn*
 ^DBIx-Class-InflateColumn-Object-Enum.kpf$
 \bblib
+\bpm_to_blib

Added: DBIx-Class-InflateColumn-Object-Enum/1.000/trunk/README
===================================================================
--- DBIx-Class-InflateColumn-Object-Enum/1.000/trunk/README	                        (rev 0)
+++ DBIx-Class-InflateColumn-Object-Enum/1.000/trunk/README	2009-01-28 23:41:19 UTC (rev 5362)
@@ -0,0 +1,128 @@
+NAME
+    DBIx::Class::InflateColumn::Object::Enum - Allows a DBIx::Class user to
+    define a Object::Enum column
+
+VERSION
+    Version 0.03
+
+SYNOPSIS
+    Load this module via load_components and utilize is_enum and values
+    property to define Enumuration columns via Object::Enum
+
+        package TableClass;
+    
+        use strict;
+        use warnings;
+        use base 'DBIx::Class';
+    
+        __PACKAGE__->load_components(qw/InflateColumn::Object::Enum Core/);
+        __PACKAGE__->table('testtable');
+        __PACKAGE__->add_columns(
+            color => {
+                data_type => 'varchar',
+                is_enum => 1,
+                extra => {
+                    list => [qw/red green blue/]
+                }
+            }
+            color_native => { # works inline with native enum type
+                data_type => 'enum',
+                is_enum => 1,
+                extra => {
+                    list => [qw/red green blue/]
+                }
+            }
+        );
+    
+        1;
+    
+    Now you may treat the column as an Object::Enum object.
+
+        my $table_rs = $db->resultset('TableClass')->create({
+            color => undef
+        });
+    
+        $table_rs->color->set_red; # sets color to red
+        $table_rs->color->is_red; # would return true
+        $table_rs->color->is_green; # would return false
+        print $table_rs->color->value; # would print 'red'
+        $table_rs->color->unset; # set the value to 'undef' or 'null'
+        $table_rs->color->is_red; # returns false now
+    
+METHODS
+  register_column
+    Internal chained method with "register_column" in DBIx::Class::Row.
+    Users do not call this directly!
+
+AUTHOR
+    Jason M. Mills, "<jmmills at cpan.org>"
+
+BUGS
+    Please report any bugs or feature requests to
+    "bug-dbix-class-inflatecolumn-object-enum at rt.cpan.org", or through
+    the web interface at
+    <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=DBIx-Class-InflateColumn
+    -Object-Enum>. I will be notified, and then you'll automatically be
+    notified of progress on your bug as I make changes.
+
+SUPPORT
+    You can find documentation for this module with the perldoc command.
+
+        perldoc DBIx::Class::InflateColumn::Object::Enum
+
+    You can also look for information at:
+
+    * RT: CPAN's request tracker
+        <http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBIx-Class-InflateColumn-O
+        bject-Enum>
+
+    * AnnoCPAN: Annotated CPAN documentation
+        <http://annocpan.org/dist/DBIx-Class-InflateColumn-Object-Enum>
+
+    * CPAN Ratings
+        <http://cpanratings.perl.org/d/DBIx-Class-InflateColumn-Object-Enum>
+
+    * Search CPAN
+        <http://search.cpan.org/dist/DBIx-Class-InflateColumn-Object-Enum>
+
+SEE ALSO
+    Object::Enum, DBIx::Class, DBIx::Class::InflateColumn::URI
+
+INSTALLATION
+
+To install this module, run the following commands:
+
+	perl Makefile.PL
+	make
+	make test
+	make install
+
+SUPPORT AND DOCUMENTATION
+
+After installing, you can find documentation for this module with the
+perldoc command.
+
+    perldoc Foo
+
+You can also look for information at:
+
+    RT, CPAN's request tracker
+        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Foo
+
+    AnnoCPAN, Annotated CPAN documentation
+        http://annocpan.org/dist/Foo
+
+    CPAN Ratings
+        http://cpanratings.perl.org/d/Foo
+
+    Search CPAN
+        http://search.cpan.org/dist/Foo
+
+
+COPYRIGHT AND LICENCE
+
+Copyright (C) 2009 Jason M. Mills
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+




More information about the Bast-commits mailing list