Function parsing different sql options

Hello,
Is there any function which will parse different sql options and add
them to
a sql query?

I found this `add_limit_offset!’ function, but it is an instance method
and I am
not able to use it as a class method. Is there any workaround which will
let
me use it a class method, or is there some other alternate function?

Thanks.

Surendra S.
http://ssinghi.kreeti.com, http://www.kreeti.com
Read my blog at: http://cuttingtheredtape.blogspot.com/
,----
| Great wits are sure to madness near allied,
| And thin partitions do their bounds divide.
|
| (John Dryden, Absalom and Achitophel, 1681)
`----