[Dbix-class] bit varying columns

Dagfinn Ilmari Mannsåker ilmari at ilmari.org
Fri Oct 24 08:59:00 GMT 2014


Bill Moseley <moseley at hank.org> writes:

> What's a good way to work with "bit varying" columns?  I want to toggle
> bits and set values.
>
> __PACKAGE__->add_columns( my_bits => {  data_type => 'bit varying', } );
[…]
> Seems like inflating to the integer (or Bit::Vector?) would be cleaner.

Just write a DBIx::Class::InflateColumn::BitVector?

-- 
"The surreality of the universe tends towards a maximum" -- Skud's Law
"Never formulate a law or axiom that you're not prepared to live with
 the consequences of."                              -- Skud's Meta-Law




More information about the DBIx-Class mailing list