|
> given that
each RDBMS may have a different keyword for limiting the number of returned
results, it might be difficult to work this into Reactor. A big role of
Reactor is to generate db-specific output from consistent input. My feeling is
that Reactor is perfectly suited to handle such a job. And I know you can
fake MySQL’s LIMIT functionality in MS-SQL (I’m sure in other DBs
as well). There could be a new method called Search() for gateway objects, that
accepts arguments like: - StartRow - MaxRows - Keywords - sortByFieldList And have it
return a struct that includes: - SearchResult.Query
(the actual query result of your search) -
SearchResult.TotalRows (total rows of query had you not limited it thru
MaxRows) You could build
a nice pagination tag that just takes the SearchResult struct. Baz From: I meant to add this to my
last post: given that each RDBMS may have a different keyword for
limiting the number of returned results, it might be difficult to work this
into Reactor. On 2/10/06, Seth
Petry-Johnson <[EMAIL PROTECTED]>
wrote: Is MySql's LIMIT similar to MS SQL's TOP keyword? i.e. select top 5 blahID, blahName from someTable order by blahID
to return 5 rows with the lowest IDs? On 2/10/06, Michael
Lantz <[EMAIL PROTECTED]
> wrote: I have to agree that some
sort of functionality like that would be great for
|
- Reactor For CF query.setMaxRows() Chris Blackwell
- RE: Reactor For CF query.setMaxRows() Michael Lantz
- RE: Reactor For CF query.setMaxRows() Doug Hughes
- Re: Reactor For CF query.setMaxRows() Seth Petry-Johnson
- Re: Reactor For CF query.setMaxRows() Seth Petry-Johnson
- RE: Reactor For CF query.setMaxRows() Baz
- RE: Reactor For CF query.setMaxRo... Doug Hughes
- Re: Reactor For CF query.setMaxRows() Marlon Moyer
- Reactor For CF sortByFieldList Baz
- RE: Reactor For CF query.setMaxRows() Doug Hughes

