From: Jess Robinson Date: Sun, 16 Jul 2006 12:17:16 +0000 (+0000) Subject: More FAQ! X-Git-Tag: v0.07002~75^2~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b587140231b22e83df038487c5257c144c8dda19;p=dbsrgits%2FDBIx-Class.git More FAQ! --- diff --git a/lib/DBIx/Class/Manual/FAQ.pod b/lib/DBIx/Class/Manual/FAQ.pod index 5dd234e..477c011 100644 --- a/lib/DBIx/Class/Manual/FAQ.pod +++ b/lib/DBIx/Class/Manual/FAQ.pod @@ -6,7 +6,7 @@ DBIx::Class::Manual::FAQ - Frequently Asked Questions (in theory) This document is intended as an anti-map of the documentation. If you know what you want to do, but not how to do it in L, then -look here. It does B contain any code or examples, it just gives +look here. It does B contain much code or examples, it just gives explanations and pointers to the correct pieces of documentation to read. @@ -60,7 +60,7 @@ L. =item .. connect to my database? Once you have created all the appropriate table/source classes, and an -overall L class, you can start using +overall L class, you can start using them in an application. To do this, you need to create a central Schema object, which is used to access all the data in the various tables. See L for details. The actual @@ -127,7 +127,7 @@ Use it's name. An accessor is created using the name. See examples in L object, as mentioned above in ".. connect to my database". Find the -L that you want +L that you want to search in, and call C on it. See L. @@ -152,7 +152,13 @@ attribute, see L. =item .. sort my results based on fields I've aliased using C? You don't. You'll need to supply the same functions/expressions to -C, as you did to C. + +To get "fieldname AS alias" in your SQL, you'll need to supply a literal chunk of SQL in your C. +To get "fieldname AS alias" in your SQL, you'll need to supply a +literal chunk of SQL in your C