db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Fischer <tfisc...@apache.org>
Subject Re: count rows in a table
Date Tue, 30 Aug 2005 21:52:25 GMT

At the moment, this possibility does not exist. It would be possible to put 
that into the Peer classes, but the problem is that the peer classes have too 
many methodts already, and this would add new ones.

Clearing up the stuffed classes in one way or another is on my list for Torque 
3.3, and though I see your point that a count method would be useful in a Peer 
class, I would rather not add a method in one release and already remove it in 
the next release.

Any other developers care to comment on this ?


On Sun, 28 Aug 2005, barak wrote:

> Hi,
> I wanted to know if there is a way in the new version of torque to use
> "count *" (or any other count) from a peer.
> I saw there is an option using CountHelper like this:
> new CountHelper().count(new Criteria("MyDatabase").add(
> some_kind_of_criterion ))
> Is there a way to use something like this from the peer so I won't have
> to insert my database name each peer?
> Thanks
> Barak
> <http://www.fetchbook.info/> www.FetchBook.Info
> Find the lowest price - Compare more than a hundred book stores in a
> click

To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

View raw message