|
NAMEDBIx::Custom::Order - Order by clauseSYNOPSIS# Result my $order = DBIx::Custom::Order->new; $order->prepend('title', 'author desc'); my $order_by = "$order"; ATTRIBUTESdbimy $dbi = $order->dbi; $order = $order->dbi($dbi); DBIx::Custom object. ordersmy $orders = $result->orders; $result = $result->orders(\%orders); Parts of order by clause METHODSDBIx::Custom::Result inherits all methods from Object::Simple and implements the following new ones.prepend$order->prepend('title', 'author desc'); Prepend order parts to "orders". to_stringmy $order_by = $order->to_string; Create order by clause. If column name is duplicated, First one is used. "to_string" override stringification. so you can write the following way. my $order_by = "$order";
Visit the GSP FreeBSD Man Page Interface. |