Function parsing different sql options

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
me use it a class method, or is there some other alternate function?


Surendra S.,
Read my blog at:
| Great wits are sure to madness near allied,
| And thin partitions do their bounds divide.
| (John Dryden, Absalom and Achitophel, 1681)