[Dbix-class] Re: new module: DBIx::Class::InflateColumn::IP

Dagfinn Ilmari Mannsåker ilmari at ilmari.org
Fri May 25 12:43:14 GMT 2007


"Zbigniew Lukasiak" <zzbbyy at gmail.com> writes:

> On 5/24/07, Christopher H. Laco <claco at chrislaco.com> wrote:
>
>> I would also mention in the does, that an is_ip column doesn't have to
>> be integer. It can also be a varchar/char containing: '1.2.3.4', or
>> anything that IP->new supports...which appears to be a lot.
>>
>
> And also perhaps worth being noted: in Pg there is support for IP
> directly in the database:
> http://www.postgresql.org/docs/8.2/interactive/datatype-net-types.html

As of version 0.02000 (uploaded yesterday) the module supports
configurable storage formats, with the default being 'addr', i.e.
dotted-quad.. Any NetAddr::IP method name that returns something the
NetAddr::IP constructor supports can be used, e.g. 'cidr' if you want
the mask length as well.

-- 
ilmari
"A disappointingly low fraction of the human race is,
 at any given time, on fire." - Stig Sandbeck Mathisen




More information about the Dbix-class mailing list