[Dbix-class] is_nullable

Zbigniew Lukasiak zzbbyy at gmail.com
Wed Mar 18 23:24:11 GMT 2009


On Wed, Mar 18, 2009 at 6:28 PM, Dermot <paikkos at googlemail.com> wrote:
> 2009/3/18 Ronald J Kimball <rkimball+dbixclass at pangeamedia.com>:
>> Dermot wrote:
>>>
>>> Hi,
>>>
>>> I notice that when I use DBIx::Class::Schema::Loader it always creates
>>> the columns as is_nullable => 0.
>>>
>>> Is this by design or is there an option I can pass it so that my
>>> ResultSources will maintain their 'NOT NULL'.
>>
>> is_nullable => 0 and NOT NULL mean the same thing, don't they?
>>
>
> I think it's one of them there double negatives :)
>
> is_nullable
>    Set this to a true value for a columns that is allowed to contain
> NULL values. This is currently only used by "deploy" in
> DBIx::Class::Schema.
>

It can be also used by user interface libraries for generating
constraints on (validation of) fields (mine does).



-- 
Zbigniew Lukasiak
http://brudnopis.blogspot.com/
http://perlalchemy.blogspot.com/



More information about the DBIx-Class mailing list