Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion DBIx schema loader (dump schema using make_schema_at) wierd behaviour
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Robert Wohlfarth  
View profile  
 More options Aug 8 2012, 10:26 am
Newsgroups: perl.beginners
From: rbwohlfa...@gmail.com (Robert Wohlfarth)
Date: Wed, 8 Aug 2012 09:26:22 -0500
Local: Wed, Aug 8 2012 10:26 am
Subject: Re: DBIx schema loader (dump schema using make_schema_at) wierd behaviour

On Tue, Aug 7, 2012 at 10:29 PM, Rajeev Prasad <rp.ne...@yahoo.com> wrote:
> Hello,

> am I missing anything? when I dump schema of my database using schema
> loader's make_schema_at. Some .pm file names under Result corrosponding to
> folders have names chnaged! they do not match to table names!!

> e.g. table name costlycookies shows up as Costlycooky.pm !!! another table
> cheapcookis show up as Cheapcooky.pm another table named els is showing up
> a El.pm !!!

> when i cat these files the table names and other details are all good. But
> due to this 'wrong' .pm file naming I am getting this error in my code:

>  DBIx::Class::Schema::resultset(): Can't find source for Costlycookies at
> /my/path/cgi-bin/myscript.pl line 53

> line 53 in my code:...

>  $coki_rs = $schema->resultset('Costlycookies')->search(....

> why is this happening? before this fresh dumping operation, I changed the
> indexed key from general indexed key to primary index key on almost all
> tables, but the old table's *.pm file names still look good.

> --
> To unsubscribe, e-mail: beginners-unsubscr...@perl.org
> For additional commands, e-mail: beginners-h...@perl.org
> http://learn.perl.org/

Take a look at the documentation for DBIx::Class::Schema::Loader::Base. It
explains how *make_schema_at* renames tables into classes.

http://search.cpan.org/~rkitover/DBIx-Class-Schema-Loader-0.07025/lib...

--
Robert Wohlfarth


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.