I have only one problem. Most of my queries need a LIMIT clause in the SQL (like SELECT * FROM link LIMIT 100 OFFSET 100). I am reading the docs and it seems to be possible with the retrieve_from_sql method, but this way I would need to code all my queries just like it was before - so there wan't be any gain. What I need is to be able to add the LIMIT clause to the generic searching methods. Using the example from the docs I need something like:
What would be your approach?Music::Artist->has_many(cds => 'Music::CD'); my @cds = $artist->cds(year => 1980, limit => 100, offset => 100);
In reply to LIMIT clause in Class::DBI by zby
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |