Hi Lukas.
Ok, the order aspect is a good point.
Br,
Timo Westkämper.
On Jan 5, 9:38 am, Lukas Eder <
lukas.e...@gmail.com> wrote:
> Hi Timo,
>
> You are right. The phrasing from the examples page is not completely
> accurate. While there seem to be two distinct API. In fact, the
> implementation is the same, and the DSL API invokes methods from the regular
> one to build queries. There are two reasons for this separation:
>
> 1. For historic reasons: the "regular API" was there first. I added the
> DSL API later. In the beginning, I didn't even think of the fact, that I
> could include a DSL in my tool
> 2. For practical reasons: the "regular API" is might be better to use,
> when a "builder pattern" needs to be applied, as you put it. I know of many
> cases, where SQL construction is done most easily by passing an SQL
> statement object around and adding to it. The DSL imposes a rather strict
> order of clause additions, and that can be bad at some times.
>
> Cheers
> Lukas
>
> 2011/1/4 timowest <
timo.westkam...@gmail.com>