Re: [CDBI] How to retrieve meta information from database: not null, default, ...?

[prev] [thread] [next] [Date index for 2005/09/12]

From: merlyn (Randal L. Schwartz)
Subject: Re: [CDBI] How to retrieve meta information from database: not null, default, ...?
Date: 14:53 on 12 Sep 2005
>>>>> "Alex" == Alex Aminoff <alex@xxxxxxxxx.xxx> writes:

Alex> Is there some sort of plugin that does this?

Call $dbh->column_info("","",$table,$column)->fetchall_arrayref({})
and dump the resulting data structure.  Perhaps the IS_NULLABLE and
COLUMN_DEF info will give you what you want.

        -- 
        Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@xxxxxxxxxx.xxx> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

[CDBI] Question
Tyler Rorabaugh 06:55 on 08 Sep 2005

Re: [CDBI] Question
merlyn (Randal L. Schwartz) 10:57 on 08 Sep 2005

Re: [CDBI] How to retrieve meta information from database: not null, default, ...?
merlyn (Randal L. Schwartz) 14:53 on 12 Sep 2005

Re: [CDBI] Question
Matt S Trout 13:11 on 08 Sep 2005

Generated at 23:46 on 13 Sep 2005 by mariachi v0.52