Skip Menu |

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 59440
Status: resolved
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: LGODDARD [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: Docs / meta-information
column_info_from_storage Arguments: 1/0 (default: 0) Return value: 1/0 __PACKAGE__->column_info_from_storage(1); Enables the on-demand automatic loading of the above column metadata from storage as necessary. This is *deprecated*, and should not be used. It will be removed before 1.0. Is there an alternative method of aquiring meta information such as column type, size? I'm trying to write some code to populate soem tables with correctly-type but kind-of random data. I guess I could look at the source, but I'd rather use an API, if possible. tia lee
On Fri Jul 16 08:35:07 2010, LGODDARD wrote: Show quoted text
> column_info_from_storage > Arguments: 1/0 (default: 0) > Return value: 1/0 > __PACKAGE__->column_info_from_storage(1); > Enables the on-demand automatic loading of the above column metadata > from storage as necessary. This is *deprecated*, and should not be > used. It will be removed before 1.0. > > Is there an alternative method of aquiring meta information such as > column type, size? I'm trying to write some code to populate soem > tables with correctly-type but kind-of random data. I guess I could > look at the source, but I'd rather use an API, if possible. >
It became clear quite some time ago that the machinery to do this correctly is way too complex to keep it in core dbic. So if you are looking for an official API solution that comes with DBIC - there will not be one. Just look at the complexity of DBIx::Class::Schema::Loader to understand why it makes no sense to do it in-core. As far as your problem - why not simply use ::Schema::Loader to get a clean schema snapshot and go from there?
You are absolutely right - it had been a year since I'd used DBIC, and this was a new problem. I struck me shortly after writing this ticket, that this is far from core functionality, and for such a rare use would only slow-down the more general system. Sorry I didn't close the ticket then. Thanks Lee