[Bast-commits] r3504 - in trunk/DBIx-Class-InflateColumn-IP: .
lib/DBIx/Class/InflateColumn
ilmari at dev.catalyst.perl.org
ilmari at dev.catalyst.perl.org
Sun Jun 17 20:52:55 GMT 2007
Author: ilmari
Date: 2007-06-17 20:52:54 +0100 (Sun, 17 Jun 2007)
New Revision: 3504
Modified:
trunk/DBIx-Class-InflateColumn-IP/Changes
trunk/DBIx-Class-InflateColumn-IP/TODO
trunk/DBIx-Class-InflateColumn-IP/lib/DBIx/Class/InflateColumn/IP.pm
Log:
Document deflate format autodetection, update TODO
Modified: trunk/DBIx-Class-InflateColumn-IP/Changes
===================================================================
--- trunk/DBIx-Class-InflateColumn-IP/Changes 2007-06-17 19:48:04 UTC (rev 3503)
+++ trunk/DBIx-Class-InflateColumn-IP/Changes 2007-06-17 19:52:54 UTC (rev 3504)
@@ -1,5 +1,8 @@
Revision history for DBIx::Class::InflateColumn::IP
+0.02001
+ - Initial version of format autodetection, based solely on column type.
+
0.02000 Thu May 24 11:28:40 2007
- First release uploaded to CPAN.
- Added configuration options for format and class.
Modified: trunk/DBIx-Class-InflateColumn-IP/TODO
===================================================================
--- trunk/DBIx-Class-InflateColumn-IP/TODO 2007-06-17 19:48:04 UTC (rev 3503)
+++ trunk/DBIx-Class-InflateColumn-IP/TODO 2007-06-17 19:52:54 UTC (rev 3504)
@@ -1,5 +1,3 @@
-* Netmask support
+* Autodetect more storage formats
-* More storage formats
-
Modified: trunk/DBIx-Class-InflateColumn-IP/lib/DBIx/Class/InflateColumn/IP.pm
===================================================================
--- trunk/DBIx-Class-InflateColumn-IP/lib/DBIx/Class/InflateColumn/IP.pm 2007-06-17 19:48:04 UTC (rev 3503)
+++ trunk/DBIx-Class-InflateColumn-IP/lib/DBIx/Class/InflateColumn/IP.pm 2007-06-17 19:52:54 UTC (rev 3504)
@@ -46,6 +46,11 @@
print 'IP address: ', $host->ip_address->addr;
print 'Address type: ', $host->ip_address->iptype;
+DBIx::Class::InflateColumn::IP supports a limited amount of
+auto-detection of the format based on the column type. If the type
+begins with C<int>, it's assumed to be numeric, while C<inet> and
+C<cidr> (as used by e.g. PostgreSQL) are assumed to be C<cidr> format.
+
=head1 METHODS
=head2 ip_class
More information about the Bast-commits
mailing list