[Dbix-class] Column Arithmatic

Jose Fonseca zefonseca at gmail.com
Sat Apr 28 02:07:02 GMT 2012


You can do this:
http://search.cpan.org/~arodland/DBIx-Class-0.08196/lib/DBIx/Class/Manual/C=
ookbook.pod#Arbitrary_SQL_through_a_custom_ResultSource

Or I saw somewhere that you can have computed columns, I couldn't find it
now.

It's definitely here:
http://search.cpan.org/~arodland/DBIx-Class-0.08196/lib/DBIx/Class/Manual/D=
ocMap.pod

HTH


On Fri, Apr 27, 2012 at 11:46 AM, <scott at simpzoid.com> wrote:

> Dear All,
>
> Does DBIC have the capability to do something as simple as:
>
> select colA * colB as product from tableC
>
> and if so can someone give a code snippet?
>
> I apologize if this question is contemptible but I am just starting out!
>
> Scott
>
>
>
>
> _______________________________________________
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120427/74c=
ee51f/attachment.htm


More information about the DBIx-Class mailing list