iActiveRecord icon indicating copy to clipboard operation
iActiveRecord copied to clipboard

No distinct ?

Open alexiscreuzot opened this issue 12 years ago • 2 comments

The "distinct" statement is missing. It would be useful to have something like:

 NSArray * distinctRecords= [[[Model LazyFetcher] distinct] fetchRecords];

alexiscreuzot avatar Jan 25 '13 09:01 alexiscreuzot

kirualex, do you still need this feature?) And does SqLite support distinct?

x0000ff avatar Feb 22 '13 06:02 x0000ff

Yes I still need this feature. For now I'm post-processing my data in order to end up with my target dataset, but using SQL would be much faster.

SQLite does support distinct as you can see here : http://sqlite.org/lang_select.html#distinct

Thanks for this library by the way, it's great work !

alexiscreuzot avatar Feb 22 '13 17:02 alexiscreuzot