[Dbix-class] where does Main come from?

Dave Howorth dhoworth at mrc-lmb.cam.ac.uk
Thu Sep 5 11:39:17 GMT 2013


Hailin Hu wrote:
> It seems that you already knew Main is the level representing Schema,
> so what's the problem?

The point is that the example is aimed at the complete noob, and by
definition they do NOT know things like this. I noticed it because it's
been a while since I created a little app from scratch and had toscratch
my head for a while when I got to that step.

> Maybe you prefer MyApp::Schema::ResultSet::*, but it is just a name,
> isn't it? You can change it as you like.

That entirely misses the point of the example.

> Cheers
> 
> On Mon, Sep 2, 2013 at 11:39 PM, Dave Howorth
> <dhoworth at mrc-lmb.cam.ac.uk> wrote:
>> I'm just looking at DBIx::Class::Manual::Example
>>
>> It starts out by setting up a database and then goes on to 'Set up
>> DBIx::Class::Schema' and all of a sudden it is creating a subdirectory
>> called Main.
>>
>> Why? Where did that come from? It's supposed to be a simple example, so
>> presumably there's a pretty important reason why this directory appears
>> out of nowhere.
>>
>> Why is there no explanation of why we need that extra level of
>> directory? Why is it called Main instead of Schema?
>>
>> Cheers, Dave
>>
>> _______________________________________________
>> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
>> IRC: irc.perl.org#dbix-class
>> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
>> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
> 
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
> 




More information about the DBIx-Class mailing list