AlexDenisov / iActiveRecord

ActiveRecord for iOS without CoreData, only SQLite
http://alexdenisov.github.com/iActiveRecord/
MIT License
354 stars 50 forks source link

No distinct ? #23

Open alexiscreuzot opened 11 years ago

alexiscreuzot commented 11 years ago

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

 NSArray * distinctRecords= [[[Model LazyFetcher] distinct] fetchRecords];
x0000ff commented 11 years ago

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

alexiscreuzot commented 11 years ago

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 !